Output history file number

Discussion about analysis, visualization, and collaboration tools and techniques

Moderators: arango, robertson

Post Reply
Message
Author
austinctodd

Output history file number

#1 Unread post by austinctodd »

Hi All,

I want to run my model simulation continuously for a long time, such that the number of output files will exceed 10,000. Currently, ROMS outputs the data to a sequentially numbered history file with only 4 integers (i.e. model_his_####.nc), so that when I get to 10000 files, it gives me the following message:

Code: Select all

WRT_HIS   - wrote history  fields (Index=1,1) into time record = 0000001
DEF_HIS   - creating history file: /outputdir/output_his_****.nc
WRT_HIS   - wrote history  fields (Index=1,2) into time record = 0000001
DEF_HIS   - creating history file: /outputdir/output_his_****.nc
I assume the **** is in place because ROMS tries to format the output file for a 4-digit integer, but it is being fed a 5-digit integer. Any suggestions on the best way around this problem?

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: Output history file number

#2 Unread post by kate »

I did this for my NEP simulations. The change is in output.F:

Code: Select all

              WRITE (HISname(ng),10) HISbase(ng)(1:lstr-3),ifile
#ifdef NEP5
  10          FORMAT (a,'_',i5.5,'.nc')
#else
  10          FORMAT (a,'_',i4.4,'.nc')
#endif
with similar chunks for AVGname and DIAname (if needed).

Note that I put the NEP5 tag on it - this is so I can find it later by searching for NEP5 in all the files.

Post Reply