netcdf closing error

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
zhengyc
Posts: 3
Joined: Wed Mar 31, 2021 1:14 pm
Location: University of Chinese Academy of Sciences

netcdf closing error

#1 Unread post by zhengyc »

There is a errorin the current version (1064) of the ROMS code. Even if it is started at a different time, it will still stop running at the same time with an error message.
The error message I get is:
Found Error: ** Line: 7891 Source: ROMS/Modules/mod_netcdf.F, netcdf_close
NETCDF_CLOSE - error while writing global attribute: bio_file
file:
call from: ROMS/Utility/inquiry. F, inquiry_nf90
NetCDF: Write to read only
Found Error: 03 Line: 156 Source: ROMS/Utility/inquiry. F, inquiry_nf90
Found Error: 03 Line: 206 Source: ROMS/Utility/get_ngfld. F, get_ngfld_nf90
Found Error: 03 Line: 105 Source: ROMS/Utility/get_ngfld. F
Found Error: 03 Line: 884 Source: ROMS/Nonlinear/get_data. F
Found Error: 03 Line: 207 Source: ROMS/Nonlinear/main3d. F
Found Error: 03 Line: 301 Source: ROMS/Drivers/nl_roms.h, ROMS_run

Thank you!
Youchang

Kosa
Posts: 35
Joined: Mon Jan 12, 2015 4:12 pm
Location: URI GSO

Re: netcdf closing error

#2 Unread post by Kosa »

Could you post the rest of the output?

yourgod_mwt_cn
Posts: 6
Joined: Wed Jun 18, 2014 12:50 pm
Location: Second Institute of Oceanography, NMR, China

Re: netcdf closing error

#3 Unread post by yourgod_mwt_cn »

that is the problem of multiple forcing files. I encountered the same problem. You need the modify the code in ROMS/Utility/inquiry.F when it CALL netcdf_close (ng, model, ncid). In the case of multiples forcing files, the default value for Lupdate is true. The code will try to update global attribute. You need to add an augment to set Lupdate to FALSE.

Post Reply