Subject: Error: cannot find ocean_frc.nc in flt_test case (ROMS 3.9)
Hi all,
I'm running the official flt_test2d case, which is supposed to be a full analytical case using ANA_FORCING. But I keep getting the error:
NETCDF_OPEN - unable to open existing NetCDF file: ocean_frc.nc
I tried to comment out FRCNAME and set NFFILES=0, but ROMS 3.9 says NFFILES must be >=1.
My .in file has:
NFFILES == 0
! FRCNAME == ocean_frc.nc
And I compiled with -DANA_GRID -DANA_MASK -DANA_INITIAL -DANA_FORCING.
Could anyone tell me why ROMS is still looking for ocean_frc.nc? How to fix this?
Thanks a lot!
cannot find .nc file in official cases
-
wanglimeng
- Posts: 2
- Joined: Mon Nov 24, 2025 4:53 pm
- Location: SOUTH CHINASEAINSTITUTE OF OCEANOLOGY,CAS
-
wanglimeng
- Posts: 2
- Joined: Mon Nov 24, 2025 4:53 pm
- Location: SOUTH CHINASEAINSTITUTE OF OCEANOLOGY,CAS
Re: cannot find .nc file in official cases
This is the wrong message
-------------------------------------------------------------------------------
Model Input Parameters: ROMS/TOMS version 3.9
Tuesday - March 17, 2026 - 3:55:51 PM
--------------------------------------------------------------------------------
READ_PHYPAR - Invalid input parameter, NFFILES 0
Must be equal or greater than one.
Found Error: 04 Line: 153 Source: ROMS/Utility/inp_par.F
Found Error: 04 Line: 111 Source: ROMS/Drivers/nl_ocean.h
Elapsed CPU time (seconds):
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Dynamic and Automatic memory (MB) usage for Grid 01: 14x12x1 tiling: 1x1
tile Dynamic Automatic USAGE MPI-Buffers
0 0.96 0.01 0.97 0.00
TOTAL 0.96 0.01 0.97 0.00
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
ROMS/TOMS - Output NetCDF summary for Grid 01:
Found Error: 04 Line: 333 Source: ROMS/Utility/close_io.F
ROMS/TOMS - I/O error ............... exit_flag: 4
ERROR: I/O related problem.
-------------------------------------------------------------------------------
Model Input Parameters: ROMS/TOMS version 3.9
Tuesday - March 17, 2026 - 3:55:51 PM
--------------------------------------------------------------------------------
READ_PHYPAR - Invalid input parameter, NFFILES 0
Must be equal or greater than one.
Found Error: 04 Line: 153 Source: ROMS/Utility/inp_par.F
Found Error: 04 Line: 111 Source: ROMS/Drivers/nl_ocean.h
Elapsed CPU time (seconds):
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Dynamic and Automatic memory (MB) usage for Grid 01: 14x12x1 tiling: 1x1
tile Dynamic Automatic USAGE MPI-Buffers
0 0.96 0.01 0.97 0.00
TOTAL 0.96 0.01 0.97 0.00
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
ROMS/TOMS - Output NetCDF summary for Grid 01:
Found Error: 04 Line: 333 Source: ROMS/Utility/close_io.F
ROMS/TOMS - I/O error ............... exit_flag: 4
ERROR: I/O related problem.
- arango
- Site Admin
- Posts: 1413
- Joined: Wed Feb 26, 2003 4:41 pm
- Location: DMCS, Rutgers University
- Contact:
Re: cannot find .nc file in official cases
Well, ANA_FORCING doesn't exist in ROMS. Instead, there are several analytical CPP options for forcing ROMS based on the state-vector configuration. We always recommend users to look at the UPWELLING test case. Also, look at the ROMS test repository https://github.com/myroms/roms_test. There are plenty of examples for you to choose from and learn!