Skip to content

Commit a83fba1

Browse files
committed
Moved VERBOSE from user_def.h to vicNl_def.h. Removed user_def.h.
1 parent b9416d7 commit a83fba1

File tree

8 files changed

+38
-74
lines changed

8 files changed

+38
-74
lines changed

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ CFLAGS = -I. -g -Wall -Wno-unused
7777
# MOST USERS DO NOT NEED TO MODIFY BELOW THIS LINE
7878
# -----------------------------------------------------------------------
7979

80-
HDRS = vicNl.h vicNl_def.h global.h snow.h user_def.h mtclim_constants_vic.h mtclim_parameters_vic.h LAKE.h
80+
HDRS = vicNl.h vicNl_def.h global.h snow.h mtclim_constants_vic.h mtclim_parameters_vic.h LAKE.h
8181

8282
OBJS = CalcAerodynamic.o CalcBlowingSnow.o SnowPackEnergyBalance.o \
8383
StabilityCorrection.o advected_sensible_heat.o alloc_atmos.o \

src/README.txt

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ Cleanup of compile-time options
656656
SnowPackEnergyBalance.c
657657
solve_snow.c
658658
surface_fluxes.c
659-
user_def.h
659+
user_def.h (removed)
660660
vicNl_def.h
661661
vicNl.c
662662
vicNl.h
@@ -670,36 +670,32 @@ Cleanup of compile-time options
670670

671671
Cleanup of user_def.h, either by removing options/settings or moving
672672
them to vicNl_def.h (becoming run-time options if appropriate).
673-
Details are as follows:
674-
675-
* Removed the LWAVE_COR option; if the user wishes to correct any of the
676-
forcing variables, the user can do this externally to VIC.
677-
678-
* Removed the OUTPUT_FORCE_STATS option.
679-
680-
* Removed the EXCESS_ICE option.
681-
682-
* Removed the QUICK_FS option.
673+
user_def.h has been removed.
683674

684-
* Removed the NO_REWIND option. All parameter files must contain the
685-
same grid cells in the same order.
675+
The following options were removed:
686676

687-
* Replaced the LOW_RES_MOIST compile-time option with LOG_MATRIC
688-
run-time option.
677+
* NO_REWIND. All parameter files must contain the same grid cells in
678+
the same order.
679+
* QUICK_FS.
680+
* EXCESS_ICE.
681+
* OUTPUT_FORCE_STATS.
682+
* LWAVE_COR. If the user wishes to correct any of the forcing
683+
variables, the user can do this externally to VIC.
689684

690-
* Moved CLOSE_ENERGY from compile-time to run-time options.
685+
The following options were moved from compile-time to run-time (in the
686+
options_struct in vicNl_def.h):
691687

692-
* Moved SPATIAL_SNOW from compile-time to run-time options.
688+
* LOW_RES_MOIST (renamed to LOG_MATRIC)
689+
* OUTPUT_FORCE
690+
* CLOSE_ENERGY
691+
* SPATIAL_SNOW
692+
* SPATIAL_FROST
693693

694-
* Moved SPATIAL_FROST from compile-time to run-time options.
694+
The following terms were moved to vicNl_def.h without modification:
695695

696-
* Moved OUTPUT_FORCE from compile-time to run-time options.
697-
698-
* Moved max array dimensions such as MAX_VEG, MAX_LAYERS, etc. to
699-
vicNl_def.h.
700-
701-
* Moved other constants such as MAXIT_FE and LAI_WATER_FACTOR to
702-
vicNl_def.h.
696+
* VERBOSE (still a compile-time option)
697+
* Max array dimensions such as MAX_VEG, MAX_LAYERS, etc.
698+
* Constants such as MAXIT_FE and LAI_WATER_FACTOR
703699

704700

705701

src/calc_snow_coverage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ double calc_snow_coverage(int *store_snow,
2323
This routine computes the current fraction of the vegetation band
2424
that is covered with snow. The snow distribution is assumed to
2525
be uniform with a slope based on the value of max_snow_distrib_slope
26-
set in user_def.h. The original value was based on field observations
26+
set in vicNl_def.h. The original value was based on field observations
2727
from the University of Minnesota's Rosemount Agricultural Experiment
2828
station (see dissertation by Keith Cherkauer, 2001).
2929

src/cmd_proc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,13 @@ void usage(char *temp)
7979
8080
This routine prints out usage details.
8181
82+
Modifications:
83+
2013-Dec-28 Removed user_def.h. TJB
8284
**********************************************************************/
8385
{
8486
fprintf(stderr,"Usage: %s [-v | -o | -g<global_parameter_file>]\n",temp);
8587
fprintf(stderr," v: display version information\n");
86-
fprintf(stderr," o: display compile-time options settings (set in user_def.h)\n");
88+
fprintf(stderr," o: display compile-time options settings (set in vicNl_def.h)\n");
8789
fprintf(stderr," g: read model parameters from <global_parameter_file>.\n");
8890
fprintf(stderr," <global_parameter_file> is a file that contains all needed model\n");
8991
fprintf(stderr," parameters as well as model option flags, and the names and\n");

src/display_current_settings.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ void display_current_settings(int mode,
1111
display_current_settings Ted Bohn 2003
1212
1313
This routine displays the current settings of options defined in
14-
user_def.h and the global parameter file.
14+
vicNl_def.h and the global parameter file.
1515
1616
NOTE: This file must be kept in sync with any additions, removals,
17-
or modifications to names of parameters in user_def.h or get_global_param.c.
17+
or modifications to names of parameters in vicNl_def.h or get_global_param.c.
1818
1919
Modifications:
2020
2005-03-08 Added EQUAL_AREA option. TJB
@@ -62,6 +62,7 @@ void display_current_settings(int mode,
6262
2013-Dec-27 Removed QUICK_FS option. TJB
6363
2013-Dec-27 Moved OUTPUT_FORCE to options_struct. TJB
6464
2013-Dec-28 Removed NO_REWIND option. TJB
65+
2013-Dec-28 Removed user_def.h. TJB
6566
**********************************************************************/
6667
{
6768

src/get_global_param.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ global_param_struct get_global_param(filenames_struct *names,
111111
2013-Dec-27 Moved SPATIAL_FROST from compile-time to run-time options.TJB
112112
2013-Dec-27 Removed QUICK_FS option. TJB
113113
2013-Dec-27 Moved OUTPUT_FORCE to options_struct. TJB
114+
2013-Dec-28 Removed user_def.h. TJB
114115
**********************************************************************/
115116
{
116117
extern option_struct options;
@@ -906,7 +907,7 @@ global_param_struct get_global_param(filenames_struct *names,
906907
nrerror(ErrStr);
907908
}
908909
if(options.SNOW_BAND > MAX_BANDS) {
909-
sprintf(ErrStr,"Global file wants more snow bands (%d) than are defined by MAX_BANDS (%d). Edit user_def.h and recompile.",options.SNOW_BAND,MAX_BANDS);
910+
sprintf(ErrStr,"Global file wants more snow bands (%d) than are defined by MAX_BANDS (%d). Edit vicNl_def.h and recompile.",options.SNOW_BAND,MAX_BANDS);
910911
nrerror(ErrStr);
911912
}
912913
}
@@ -977,11 +978,11 @@ global_param_struct get_global_param(filenames_struct *names,
977978
nrerror(ErrStr);
978979
}
979980
if(options.Nlayer > MAX_LAYERS) {
980-
sprintf(ErrStr,"Global file wants more soil moisture layers (%d) than are defined by MAX_LAYERS (%d). Edit user_def.h and recompile.",options.Nlayer,MAX_LAYERS);
981+
sprintf(ErrStr,"Global file wants more soil moisture layers (%d) than are defined by MAX_LAYERS (%d). Edit vicNl_def.h and recompile.",options.Nlayer,MAX_LAYERS);
981982
nrerror(ErrStr);
982983
}
983984
if(options.Nnode > MAX_NODES) {
984-
sprintf(ErrStr,"Global file wants more soil thermal nodes (%d) than are defined by MAX_NODES (%d). Edit user_def.h and recompile.",options.Nnode,MAX_NODES);
985+
sprintf(ErrStr,"Global file wants more soil thermal nodes (%d) than are defined by MAX_NODES (%d). Edit vicNl_def.h and recompile.",options.Nnode,MAX_NODES);
985986
nrerror(ErrStr);
986987
}
987988
if(!options.FULL_ENERGY && options.CLOSE_ENERGY) {

src/user_def.h

Lines changed: 0 additions & 39 deletions
This file was deleted.

src/vicNl_def.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,14 @@
139139
2013-Dec-27 Moved SPATIAL_FROST to options_struct. TJB
140140
2013-Dec-27 Removed QUICK_FS option. TJB
141141
2013-Dec-27 Moved OUTPUT_FORCE to options_struct. TJB
142+
2013-Dec-28 Moved VERBOSE from user_def.h to vicNl_def.h; deleted
143+
user_def.h. TJB
142144
*********************************************************************/
143-
144-
#include <user_def.h>
145145
#include <snow.h>
146146

147+
/***** If TRUE include all model messages to stdout, and stderr *****/
148+
#define VERBOSE TRUE
149+
147150
/***** Model Constants *****/
148151
#define MAXSTRING 2048
149152
#define MINSTRING 20

0 commit comments

Comments
 (0)