In the set_forcing_type.c file, line 132-139,
if (strcasecmp("MISSING", ncvarname) != 0) {
strcpy(param_set.TYPE[type].varname, ncvarname);
}
else {
log_err(
"Must supply netCDF variable name for %s forcing file number %d",
optstr, file_num + 1);
}
Is there an error in the phrase, should it be changed to:
if (strcasecmp("MISSING", ncvarname) == 0) {
strcpy(param_set.TYPE[type].varname, ncvarname);
}
else {
log_err(
"Must supply netCDF variable name for %s forcing file number %d",
optstr, file_num + 1);
}
I fixed this problem by checking my domain.nc, the variables in nc file was wrong, making nc with an extra variable: mouth, delete it, and solved, but a new error happened, #932
931
In the set_forcing_type.c file, line 132-139, if (strcasecmp("MISSING", ncvarname) != 0) { strcpy(param_set.TYPE[type].varname, ncvarname); } else { log_err( "Must supply netCDF variable name for %s forcing file number %d", optstr, file_num + 1); }
Is there an error in the phrase, should it be changed to:
if (strcasecmp("MISSING", ncvarname) == 0) { strcpy(param_set.TYPE[type].varname, ncvarname); } else { log_err( "Must supply netCDF variable name for %s forcing file number %d", optstr, file_num + 1); }