[Dart-dev] [4034] DART/trunk/models/POP/shell_scripts/MakeInitialEnsemble.csh: Creates the pointer files and links to the restart files to mimic
nancy at ucar.edu
nancy at ucar.edu
Thu Sep 3 11:29:14 MDT 2009
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/dart-dev/attachments/20090903/32d3b2f0/attachment.html
-------------- next part --------------
Modified: DART/trunk/models/POP/shell_scripts/MakeInitialEnsemble.csh
===================================================================
--- DART/trunk/models/POP/shell_scripts/MakeInitialEnsemble.csh 2009-09-02 23:08:32 UTC (rev 4033)
+++ DART/trunk/models/POP/shell_scripts/MakeInitialEnsemble.csh 2009-09-03 17:29:13 UTC (rev 4034)
@@ -180,7 +180,8 @@
ln -sf $FILE pop.r.nc
- echo "pop.r.nc" > pop_pointer.restart
+ echo "pop.r.nc" >! pop_pointer.restart
+ echo "RESTART_FMT=nc" >> pop_pointer.restart
echo "Converting restart $FILE ..."
@@ -202,11 +203,21 @@
#----------------------------------------------------------------------
# Rename 'generic' output file to reflect the ensemble member number.
+ # At the end of the day, we need three things:
+ # 1) a DART ics file for each ensemble member : ens_mem.xxxx
+ # 2) a pointer file for each ensmeble member : rpointer.ocn.xxx.restart
+ # 3) a POP netCDF restart file (for each ensemble member) actually,
+ # since we're just grabbing the grid dimensions and calendar info
+ # we could probably use just one, but we've got them, and we're just
+ # creating links ... it's easy enough.
#----------------------------------------------------------------------
@ memcount = $memcount + 1
set OFNAME = `printf ens_mem.%03d $memcount`
mv filter_updated_restart $OFNAME
+ echo $FILE:t >! rpointer.ocn.${memcount}.restart
+ echo "RESTART_FMT=nc" >> rpointer.ocn.${memcount}.restart
+ ln -s $FILE $FILE:t
#----------------------------------------------------------------------
# remove input files to prep for next iteration
More information about the Dart-dev
mailing list