Found Error:** Line:164 Source:ROMS/Utility/def_var.F, def_var_nf90

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
KSH
Posts: 1
Joined: Wed Jan 11, 2023 1:20 pm
Location: SNR Technology

Found Error:** Line:164 Source:ROMS/Utility/def_var.F, def_var_nf90

#1 Unread post by KSH »

Hi. I installed roms and try to run the Basin example. But, I have one problem and I can't seem to solve it.

Here is my problem.

Found Error: ** Line: 164 Source: ROMS/Utility/def_var.F, def_var_nf90

DEF_VAR_NF90 - Grid 01, unable to define variable:
in NetCDF file: roms_his.nc
Found Error: 03 Line: 3091 Source: ROMS/Utility/def_info.F, def_info_nf90
Found Error: 03 Line: 488 Source: ROMS/Utility/def_his.F, def_his_nf90
Found Error: 03 Line: 103 Source: ROMS/Utility/def_his.F
Found Error: 03 Line: 196 Source: ROMS/Nonlinear/output.F
Found Error: 03 Line: 582 Source: ROMS/Nonlinear/main3d.F
Found Error: 03 Line: 298 Source: ROMS/Drivers/nl_roms.h, ROMS_run

ROMS result files(roms_his.nc, roms_rst.nc etc.) are not created along with the above message.
If I change the output timestep of all files to 0, the model will run but no result file will be created.

My system is ubuntu 22.04.
I installed zlib, hdf5, netcdf-c(4.9.1), netcdf-f(4.6.0) library.
I using gfortran and openmpi for roms compile.
my roms version is 1214.

Is there any way to solve the above problem?

I attached roms run log file.

Thanks for help!
Attachments
roms_run.log
(30.14 KiB) Downloaded 36 times

robertson
Site Admin
Posts: 219
Joined: Wed Feb 26, 2003 3:12 pm
Location: IMCS, Rutgers University

Re: Found Error:** Line:164 Source:ROMS/Utility/def_var.F, def_var_nf90

#2 Unread post by robertson »

There should be a variable name printed after the colon, i.e. "unable to define variable: ubar". Your error does not include a variable name. If you read further down in the log you will see:

ERROR: Abnormal termination: NetCDF OUTPUT.
REASON: NetCDF: Name contains illegal characters

Looking at the line numbers for ROMS/Utility/def_info.F, there is a discrepancy. In the latest version of the code, line 3091 would not print this error. However, version 1211 and earlier of the source code would throw this error while attempting to define bathymetry. You may have inconsistent versions in your code. Perhaps the command svn status can give you a hint.

Post Reply