Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resloved--Can't Run vic_image.exe -g global,txt, and the error occured in the file of set_forcing_type.c #933

Open
ZhengWang1003 opened this issue Mar 17, 2023 · 1 comment

Comments

@ZhengWang1003
Copy link

#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);
}

@ZhengWang1003 ZhengWang1003 changed the title Can't Run vic_image.exe -g global,txt, and the error occured in the file of set_forcing_type.c Resloved--Can't Run vic_image.exe -g global,txt, and the error occured in the file of set_forcing_type.c Mar 18, 2023
@ZhengWang1003
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant