<HTML>
<HEAD>
<TITLE>Re: [mpas-developers] mpas output file naming conventions</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12pt'><BR>
Folks,<BR>
<BR>
A couple of options. &nbsp;POP generally appends a simulation date (and time if the output is frequent enough) to output filenames. &nbsp;The namelist just contains root filenames and paths and the suffix contains date stamp and format (bin vs netCDF). &nbsp;CESM has similar date tags and both CESM and POP have an option to read info from a &#8220;pointer file&#8221; - this file is a simple text file that contains the name of the last restarts written (and is over-written every time a new restart is written). &nbsp;Then, on startup, the code can read the location/name of the last restart from this pointer file. <BR>
<BR>
We probably will need the latter option for CESM compatibility at some point.<BR>
<BR>
Phil<BR>
<BR>
On 9/8/11 10:39 AM, &quot;Todd Ringler&quot; &lt;<a href="ringler@lanl.gov">ringler@lanl.gov</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12pt'><BR>
Hi Everyone,<BR>
<BR>
More broadly, the issue that Sara raises is a common headache in climate modeling. A simulations might be composed of a dozen or more queue submissions that pick up where the last submission ended.<BR>
<BR>
Sara offered one possible remedy. I am guessing Mat has also come up with solutions and that Phil has had to address this more broadly within the CESM. Can others offer up ideas on how we should build in support for production simulations that need a large number of submissions/restarts to complete?<BR>
<BR>
Cheers,<BR>
Todd<BR>
<BR>
<BR>
On Sep 8, 2011, at 10:22 AM, Sara A. Rauscher wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12pt'> &nbsp;&nbsp;&nbsp;<BR>
&nbsp;Hi,<BR>
&nbsp;<BR>
&nbsp;I mentioned this to Todd and he suggested I post my user experience to the developer team.<BR>
&nbsp;<BR>
&nbsp;I've been running cam-mpas, and revision 983 brought up a small run-time hassle. Is there any way to automatically put a unique name on mpas output files instead of generic names like &quot;output.nc&quot;, &quot;ocean.nc&quot; without editing namelist.input every time? For example, they could be time stamped by model time (YYYY-MM-DD-HH as in CESM) &nbsp;or number of time steps) or the real-world time at which the job is running.<BR>
&nbsp;<BR>
&nbsp;It's not a big deal during testing, but in production runs it starts to be a hassle. I have set my run script to capture the date from the latest CAM restart file and sed that into namelist.input so that the output files have a unique and meaningful name. It works fine but errors can still happen. In production runs, with one misnamed file, or writing over an output file, things get messy fast. <BR>
&nbsp;<BR>
&nbsp;thanks<BR>
&nbsp;cheers<BR>
&nbsp;sara<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12pt'> <BR>
&nbsp;-------- Original Message -------- &nbsp;&nbsp;<BR>
&nbsp;Subject: &nbsp;[mpas-developers] /home/subversion/mpas/model revision 983 &nbsp;<BR>
&nbsp;Date: &nbsp;Wed, 7 Sep 2011 11:00:48 -0600 (MDT) &nbsp;<BR>
&nbsp;From: &nbsp;<a href="mpas-developers@ucar.edu">mpas-developers@ucar.edu</a> &nbsp;<BR>
&nbsp;Reply-To: &nbsp;&nbsp;<a href="mpas-developers@ucar.edu">mpas-developers@ucar.edu</a> &nbsp;<BR>
&nbsp;To: &nbsp;<a href="mpas-developers@ucar.edu">mpas-developers@ucar.edu</a> &nbsp;&nbsp;&nbsp;<BR>
&nbsp;<BR>
<BR>
<B><a href="ringler@lanl.gov">ringler@lanl.gov</a></B> 2011-09-07 11:00:48 -0600 (Wed, 07 Sep 2011)<BR>
<BR>
add default naming for I/O files<BR>
&nbsp;<BR>
&nbsp;<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="100%"NOSHADE> <BR>
<FONT COLOR="#808080">Modified: branches/ocean_projects/timesplitting_mrp/namelist.input.ocean<BR>
===================================================================<BR>
--- branches/ocean_projects/timesplitting_mrp/namelist.input.ocean&nbsp;2011-09-07 15:53:33 UTC (rev 982)<BR>
+++ branches/ocean_projects/timesplitting_mrp/namelist.input.ocean&nbsp;2011-09-07 17:00:48 UTC (rev 983)<BR>
@@ -8,6 +8,9 @@<BR>
&nbsp;&nbsp;&nbsp;&nbsp;config_stats_interval = 100 <BR>
&nbsp;/<BR>
&nbsp;&amp;io<BR>
+ &nbsp;&nbsp;config_input_name = 'ocean.nc'<BR>
+ &nbsp;&nbsp;config_output_name = 'output.nc'<BR>
+ &nbsp;&nbsp;config_restart_name = 'restart.nc'<BR>
&nbsp;/<BR>
&nbsp;&amp;restart<BR>
&nbsp;&nbsp;&nbsp;&nbsp;config_restart_interval = 10000000 <BR>
<BR>
</FONT><BR>
&nbsp;<BR>
&nbsp;&lt;Attached Message Part.txt&gt;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
_______________________________________________<BR>
mpas-developers mailing list<BR>
<a href="mpas-developers@mailman.ucar.edu">mpas-developers@mailman.ucar.edu</a><BR>
<a href="http://mailman.ucar.edu/mailman/listinfo/mpas-developers">http://mailman.ucar.edu/mailman/listinfo/mpas-developers</a><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12pt'><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12pt'><BR>
</SPAN></FONT><SPAN STYLE='font-size:12pt'><FONT FACE="Courier, Courier New"><BR>
---<BR>
Correspondence/TSPA/DUSA EARTH<BR>
------------------------------------------------------------<BR>
Philip Jones                                <a href="pwjones@lanl.gov">pwjones@lanl.gov</a><BR>
Climate, Ocean and Sea Ice Modeling<BR>
Los Alamos National Laboratory<BR>
T-3 MS B216                                 Ph: 505-500-2699<BR>
PO Box 1663 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                   Fax: 505-665-5926<BR>
Los Alamos, NM 87545-1663<BR>
</FONT></SPAN><FONT SIZE="1"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:9pt'><BR>
<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>