Fixed a bug when checking whether to open the second forcing file in
"get_global_param"
@@ -790,13 +790,13 @@ get_global_param(FILE *gp)
sprintf(filenames.forcing[0], "%s%4d.nc", filenames.f_path_pfx[0],
global_param.startyear);
get_forcing_file_info(&param_set, 0);
- if (param_set.N_TYPES[1] != MISSING) {
+ if (param_set.N_TYPES[1] != 0) {
sprintf(filenames.forcing[1], "%s%4d.nc", filenames.f_path_pfx[1],
global_param.startyear);
get_forcing_file_info(&param_set, 1);
}
- if (param_set.N_TYPES[1] != MISSING && global_param.forceyear[1] == 0) {
+ if (param_set.N_TYPES[1] != 0 && global_param.forceyear[1] == 0) {
global_param.forceyear[1] = global_param.forceyear[0];
global_param.forcemonth[1] = global_param.forcemonth[0];
global_param.forceday[1] = global_param.forceday[0];
