Ocean Modeling Discussion

ROMS/TOMS

Search for:
It is currently Tue Oct 16, 2018 1:15 pm




Post new topic Reply to topic  [ 3 posts ] 

All times are UTC

Author Message
PostPosted: Mon May 14, 2018 11:39 am 
Offline

Joined: Wed Apr 11, 2018 2:31 pm
Posts: 2
Location: Marine Institute
Hi All,

When I set up my run to write out data hourly to history files, with a new file to cover every 24 hours, I get one file ocean_his_****.nc on the server, which keeps on getting overwritten, so I end up with only 1 file. When I copy it from the server, it shows up as ocean_his_____.nc.

I have scoured the forum and manual but there is no reference to this type of problem, that I can see.

Thanks,
Joe


Top
 Profile  
Reply with quote  
PostPosted: Mon May 14, 2018 2:57 pm 
Offline
User avatar

Joined: Wed Jul 02, 2003 5:29 pm
Posts: 3515
Location: IMS/UAF, USA
This string is written to in output.F, in code like:
Code:
              WRITE (HIS(ng)%name,10) TRIM(HIS(ng)%base), ifile
#ifdef LONG_NUMS
  10          FORMAT (a,'_',i5.5,'.nc')
#else
  10          FORMAT (a,'_',i4.4,'.nc')
#endif
            END IF
where:
Code:
           ifile=(iic(ng)-1)/ndefHIS(ng)+1
What you have done is overflow the integers that fit within four characters. You can do this by having a DSTART such that your first file wants to be number 560924 or by having over 9999 output files. I ran into the latter problem in some applications and added the LONG_NUM option.


Top
 Profile  
Reply with quote  
PostPosted: Mon May 14, 2018 3:42 pm 
Offline

Joined: Wed Apr 11, 2018 2:31 pm
Posts: 2
Location: Marine Institute
Thanks Kate, that has sorted the problem!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group