Issue with Output File Generation in ROMS

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
hyc006
Posts: 24
Joined: Thu Nov 30, 2023 2:12 am
Location: UCSD

Issue with Output File Generation in ROMS

#1 Unread post by hyc006 »

Hello ROMS community,

I'm encountering an issue with the output file generation in ROMS and would appreciate some assistance. After running the model, I've noticed that no output files are being generated in the designated folder. I've checked the roms.in file and ensured that the output file switch LDEFOUT is set to T, indicating that file creation/append is enabled.

Despite this configuration, I'm still not seeing any output files after the model finishes running. I've double-checked the file paths and permissions, but everything seems to be in order.
Here's my command for the time and output

Code: Select all

! Time-Stepping parameters.

      NTIMES == 50
          DT == 1800.0d0
     NDTFAST == 180

! Number of timesteps for computing observation impacts during the
! analysis-forecast cycle.

  NTIMES_ANA == 50                              ! analysis interval
  NTIMES_FCT == 50                              ! forecast interval

! Model iteration loops parameters.

       ERstr =  1
       ERend =  1
      Nouter =  1
      Ninner =  1
     Nsaddle =  1
  Nintervals =  1

! Number of eigenvalues (NEV) and eigenvectors (NCV) to compute for the
! Lanczos/Arnoldi problem in the Generalized Stability Theory (GST)
! analysis. NCV must be greater than NEV (see documentation below).

         NEV =  2                               ! Number of eigenvalues
         NCV =  10                              ! Number of eigenvectors

! Input/Output parameters.

       NRREC == 0
   LcycleRST == T
        NRST == 100
        NSTA == 1
        NFLT == 1
       NINFO == 1
       
! Output history, quicksave, average, and diagnostic files parameters.

     LDEFOUT == T
        NHIS == 5
     NDEFHIS == 0
        NQCK == 0
     NDEFQCK == 0
      NTSAVG == 1
        NAVG == 5
     NDEFAVG == 0
      NTSDIA == 1
        NDIA == 5
     NDEFDIA == 0


Has anyone experienced a similar issue before or can offer some troubleshooting steps to resolve this? Any insights or suggestions would be greatly appreciated.

Thank you in advance for your help!

ymamoutos
Posts: 71
Joined: Fri Nov 19, 2010 2:33 pm
Location: University of Aegean

Re: Issue with Output File Generation in ROMS

#2 Unread post by ymamoutos »

Greetings

you need to set NDEFHIS and NDEFAVG not equal to zero.
roms*.in file has an extensive description about these switches

Kind Regards

Giannis

User avatar
wilkin
Posts: 922
Joined: Mon Apr 28, 2003 5:44 pm
Location: Rutgers University
Contact:

Re: Issue with Output File Generation in ROMS

#3 Unread post by wilkin »

you need to set NDEFHIS and NDEFAVG not equal to zero.
roms*.in file has an extensive description about these switches
That is incorrect. NDEFHIS = 0 is valid. It means create only one history file and write all history output to it.

The GLOSSARY comments at the end of every example roms*.in states ...

Code: Select all

! LDEFOUT      Logical switch (T/F) used to create new output files when
!                initializing from a re-start file, abs(NRREC) > 0.  If TRUE
!                and applicable, a new HISTORY, QUICKSAVE, AVERAGE, DIAGNOSTIC
!                and STATIONS files are created during the initialization
!                stage. If FALSE and applicable, data is appended to existing
!                HISTORY, QUICKSAVE, AVERAGE, DIAGNOSTIC and STATIONS files.
!                See also parameters NDEFHIS, NDEFQCK, NDEFAVG and NDEFDIA
!                below. 
!
! NHIS         Number of timesteps between writing fields into the HISTORY
!                 file. Set NHIS=0 to suppress writing of HISTORY file.
!    
! NDEFHIS      Number of timesteps between the creation of new HISTORY file.
!                If NDEFHIS=0, the model will only process one HISTORY file.
!                This feature is useful for extended simulations when HISTORY
!                file get too large; it creates a new file every NDEFHIS
!                timesteps.
If you look at the UPWELLING example, roms_upwelling.in, you will see NDEFHIS = 0, and this case surely works correctly.

Your problem lies elsewhere. What is your NRREC?

If you have NRREC = 0, then the log should shows calls to DEF_HIS_NF90 at the first time step, for example:

Code: Select all

 TIME-STEP YYYY-MM-DD hh:mm:ss.ss  KINETIC_ENRG   POTEN_ENRG    TOTAL_ENRG    NET_VOLUME
                     C => (i,j,k)       Cu            Cv            Cw         Max Speed

         0 2024-01-01 00:00:00.00  0.000000E+00  9.825846E+01  9.825846E+01  8.000000E+07
                         (0,0,00)  0.000000E+00  0.000000E+00  0.000000E+00  0.000000E+00
  DEF_HIS_NF90     - creating history file,            Grid 01: cod_1dmix_50.nc
  WRT_HIS_NF90     - writing history     fields (Index=1,1) in record = 1
  DEF_AVG_NF90     - creating average file,            Grid 01: avg_cod_1dmix.nc
  DEF_DIAGS_NF90   - creating diagnostics file,        Grid 01: dia_cod_1dmix.nc
  DEF_RST_NF90     - creating restart file,            Grid 01: rst_cod_1dmix.nc
Do you see this? It will tell you the file names created.
John Wilkin: DMCS Rutgers University
71 Dudley Rd, New Brunswick, NJ 08901-8521, USA. ph: 609-630-0559 jwilkin@rutgers.edu

ymamoutos
Posts: 71
Joined: Fri Nov 19, 2010 2:33 pm
Location: University of Aegean

Re: Issue with Output File Generation in ROMS

#4 Unread post by ymamoutos »

Greetings John

Many thanks for the correction on
my post. I misinterpreted the
description on roms*.in file.

Kind Regards

Giannis

Post Reply