ROMS requires history file from the first run

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
User avatar
d.kobashi
Posts: 69
Joined: Tue Sep 28, 2010 11:59 pm
Location: Texas A&M University

ROMS requires history file from the first run

#1 Unread post by d.kobashi »

Dear all,

I am trying to run ROMS using the restart file; however, the model asked for a history file to run the model. I wonder if I can override the requirement.

Code: Select all

NETCDF_OPEN - unable to open existing NetCDF file:                            
               /scratch/user/d.kobashi/projects/hindcasts/projects/txla2/outputs/2010/ocean_his_parent_00011.nc
               call from:  ROMS/Utility/def_his.F                              
 Found Error: 03   Line: 4461     Source: ROMS/Utility/def_his.F               
                                                                               
 DEF_HIS - unable to open history NetCDF file: /scratch/user/d.kobashi/projects/hindcasts/projects/txla2/outputs/2010/ocean_his_parent_00011.nc
 Found Error: 03   Line: 135      Source: ROMS/Nonlinear/output.F           
 Found Error: 03   Line: 630      Source: ROMS/Nonlinear/main3d.F             
 Found Error: 03   Line: 320      Source: ROMS/Drivers/nl_ocean.h
                                                                             
 Elapsed CPU time (seconds):                                                   
                                                                               
                                                                               
 DEF_HIS - unable to open history NetCDF file: /scratch/user/d.kobashi/projects/hindcasts/projects/txla2/outputs/2010/ocean_his_parent_00011.nc

This is not a continuous run. I want to run a nesting model using the restart file I have already (for the parent grid only). I have a restart file for a period of 1 year with daily frequency. I extracted the data from my restart file for a specific date using NCO and used it as initial conditions. However, when I ran the model, the model asked for a history file. I guess the model tried to merge with the history file created in the past. But this is a new run so I don't want to merge the history file.

Is there any way to override the requirement of a history file? I use COAWST version 3.5 (the latest version I guess).

Thanks in advance,

-DJ

jcwarner
Posts: 1200
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: ROMS requires history file from the first run

#2 Unread post by jcwarner »

if it is a new run, then you should set nrrec = 0 (? right) so then it would not look for his11, instead it would create a new his1. ?
-j

User avatar
d.kobashi
Posts: 69
Joined: Tue Sep 28, 2010 11:59 pm
Location: Texas A&M University

Re: ROMS requires history file from the first run

#3 Unread post by d.kobashi »

John,

Thanks for your reply.
However, after the run with nrrec=0 as you suggested, I now have a new error as follows. It appears that ROMS cannot write time variable to the history file. The reason for the error is not a valid netcdf ID. Not sure why.

Code: Select all

TIME-STEP YYYY-MM-DD hh:mm:ss.ss  KINETIC_ENRG   POTEN_ENRG    TOTAL_ENRG    NET_VOLUME  Grid
                     C => (i,j,k)       Cu            Cv            Cw         Max Speed
                                                                               
    163080 2010-06-01 00:00:00.00  1.063596E-02  7.785886E+03  7.785896E+03  1.202254E+14  01
                     (544,063,26)  2.304623E-02  3.820861E-02  0.000000E+00  8.926374E-01
 Found Error: **   Line: 6017     Source: ROMS/Modules/mod_netcdf.F, netcdf_put_fvar
                                                                              
 NETCDF_PUT_FVAR_1D - error while writing variable:  ocean_time
                      in input file:  /scratch/user/d.kobashi/projects/hindcasts/projects/txla2/outputs/2010/ocean_his_parent.nc
                      call from:  ROMS/Utility/wrt_his.F                       
 Found Error: 03   Line: 146      Source: ROMS/Utility/wrt_his.F               
 Found Error: 03   Line: 170      Source: ROMS/Nonlinear/output.F              
 Found Error: 03   Line: 630      Source: ROMS/Nonlinear/main3d.F              
 Found Error: 03   Line: 320      Source: ROMS/Drivers/nl_ocean.h              
                                                                               
.
.
.
.

 ERROR: Abnormal termination: NetCDF OUTPUT.                                   
 REASON: NetCDF: Not a valid ID     

jcwarner
Posts: 1200
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: ROMS requires history file from the first run

#4 Unread post by jcwarner »

if it is a new run, why is time step 163080? what is dstart?
not sure.

User avatar
d.kobashi
Posts: 69
Joined: Tue Sep 28, 2010 11:59 pm
Location: Texas A&M University

Re: ROMS requires history file from the first run

#5 Unread post by d.kobashi »

A good catch, John. There was a typo for dstart. Thanks for your help. -DJ

Post Reply