Ocean Modeling Discussion

ROMS/TOMS

Search for:
It is currently Tue Sep 25, 2018 3:09 pm




Post new topic Reply to topic  [ 5 posts ] 

All times are UTC

Author Message
 Post subject: NTSHIS??
PostPosted: Mon Nov 26, 2012 11:20 pm 
Offline

Joined: Sun Oct 02, 2011 11:52 am
Posts: 9
Location: Université de Liège
Hello,

I'd like to plan several simulations, starting from a restart file, lasting typically 24 hours. I'd like to output a history file every hour but only for the 6 last hours of the simulation, because otherwise if I have a hundred parallel runs, it will take way too much hard drive space, 6 hours is the limit. In the .in file guide, I see the NTSAVG and NTSDIA that allow to tell ROMS when beginning to output average and diag files. But I don't see any NTSHIS and it's exactly what I need! Or is there another way to do this?

Thanks in advance!

François Laenen


Top
 Profile  
Reply with quote  
 Post subject: Re: NTSHIS??
PostPosted: Tue Nov 27, 2012 12:37 am 
Offline
User avatar

Joined: Wed Jul 02, 2003 5:29 pm
Posts: 3502
Location: IMS/UAF, USA
You could run in two segments, one with a long NHIS, the second with a short NHIS.

You could hack output.F to only call wrt_his after a certain timestep.

You could more cleanly add NTSHIS to the input and make it do what you want.


Top
 Profile  
Reply with quote  
 Post subject: Re: NTSHIS??
PostPosted: Tue Nov 27, 2012 12:52 am 
Offline

Joined: Sun Oct 02, 2011 11:52 am
Posts: 9
Location: Université de Liège
Ok thank you Kate!

I'll check about hacking the output.F and defining the value.
Can you remind me what is the subroutine called to search the value in the .in file?

François


Top
 Profile  
Reply with quote  
 Post subject: Re: NTSHIS??
PostPosted: Tue Nov 27, 2012 1:03 am 
Offline
User avatar

Joined: Wed Jul 02, 2003 5:29 pm
Posts: 3502
Location: IMS/UAF, USA
It is read_phypar in the new code, inp_par in older versions. Just search for NTSAVG/ntsAVG and copy how it is handled.


Top
 Profile  
Reply with quote  
 Post subject: Re: NTSHIS??
PostPosted: Wed Nov 28, 2012 2:36 am 
Offline
User avatar

Joined: Tue Jul 01, 2003 4:12 am
Posts: 509
Location: NIWA
My advice is to follow Kate's first suggestion: run your model in segments; use a shell or Python script to generate the input files and scripts required.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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