[Dart-dev] DART/branches Revision: 11035
dart at ucar.edu
dart at ucar.edu
Wed Feb 8 12:13:36 MST 2017
thoar at ucar.edu
2017-02-08 12:13:36 -0700 (Wed, 08 Feb 2017)
51
will preserve existing input.nc files if they exist
Modified: DART/branches/rma_single_file/models/9var/work/workshop_setup.csh
===================================================================
--- DART/branches/rma_single_file/models/9var/work/workshop_setup.csh 2017-02-08 19:09:26 UTC (rev 11034)
+++ DART/branches/rma_single_file/models/9var/work/workshop_setup.csh 2017-02-08 19:13:36 UTC (rev 11035)
@@ -53,9 +53,8 @@
exit 1
endif
-\rm -f perfect_input.nc filter_input.nc
-ncgen -o perfect_input.nc perfect_input.cdl
-ncgen -o filter_input.nc filter_input.cdl
+if ( ! -e perfect_input.nc ) ncgen -o perfect_input.nc perfect_input.cdl
+if ( ! -e filter_input.nc ) ncgen -o filter_input.nc filter_input.cdl
#----------------------------------------------------------------------
# 'preprocess' is a program that culls the appropriate sections of the
Modified: DART/branches/rma_single_file/models/bgrid_solo/work/workshop_setup.csh
===================================================================
--- DART/branches/rma_single_file/models/bgrid_solo/work/workshop_setup.csh 2017-02-08 19:09:26 UTC (rev 11034)
+++ DART/branches/rma_single_file/models/bgrid_solo/work/workshop_setup.csh 2017-02-08 19:13:36 UTC (rev 11035)
@@ -53,9 +53,8 @@
exit 1
endif
-\rm -f perfect_input.nc filter_input.nc
-ncgen -o perfect_input.nc perfect_input.cdl
-ncgen -o filter_input.nc filter_input.cdl
+if ( ! -e perfect_input.nc ) ncgen -o perfect_input.nc perfect_input.cdl
+if ( ! -e filter_input.nc ) ncgen -o filter_input.nc filter_input.cdl
#----------------------------------------------------------------------
# 'preprocess' is a program that culls the appropriate sections of the
Modified: DART/branches/rma_single_file/models/forced_lorenz_96/work/workshop_setup.csh
===================================================================
--- DART/branches/rma_single_file/models/forced_lorenz_96/work/workshop_setup.csh 2017-02-08 19:09:26 UTC (rev 11034)
+++ DART/branches/rma_single_file/models/forced_lorenz_96/work/workshop_setup.csh 2017-02-08 19:13:36 UTC (rev 11035)
@@ -53,9 +53,8 @@
exit 1
endif
-\rm -f perfect_input.nc filter_input.nc
-ncgen -o perfect_input.nc perfect_input.cdl
-ncgen -o filter_input.nc filter_input.cdl
+if ( ! -e perfect_input.nc ) ncgen -o perfect_input.nc perfect_input.cdl
+if ( ! -e filter_input.nc ) ncgen -o filter_input.nc filter_input.cdl
echo 'copying the workshop version of the input.nml into place'
cp -f input.workshop.nml input.nml
Modified: DART/branches/rma_single_file/models/lorenz_04/work/workshop_setup.csh
===================================================================
--- DART/branches/rma_single_file/models/lorenz_04/work/workshop_setup.csh 2017-02-08 19:09:26 UTC (rev 11034)
+++ DART/branches/rma_single_file/models/lorenz_04/work/workshop_setup.csh 2017-02-08 19:13:36 UTC (rev 11035)
@@ -52,9 +52,8 @@
exit 1
endif
-\rm -f perfect_input.nc filter_input.nc
-ncgen -o perfect_input.nc perfect_input.cdl
-ncgen -o filter_input.nc filter_input.cdl
+if ( ! -e perfect_input.nc ) ncgen -o perfect_input.nc perfect_input.cdl
+if ( ! -e filter_input.nc ) ncgen -o filter_input.nc filter_input.cdl
#----------------------------------------------------------------------
# 'preprocess' is a program that culls the appropriate sections of the
Modified: DART/branches/rma_single_file/models/lorenz_63/work/workshop_setup.csh
===================================================================
--- DART/branches/rma_single_file/models/lorenz_63/work/workshop_setup.csh 2017-02-08 19:09:26 UTC (rev 11034)
+++ DART/branches/rma_single_file/models/lorenz_63/work/workshop_setup.csh 2017-02-08 19:13:36 UTC (rev 11035)
@@ -53,9 +53,8 @@
exit 1
endif
-\rm -f perfect_input.nc filter_input.nc
-ncgen -o perfect_input.nc perfect_input.cdl
-ncgen -o filter_input.nc filter_input.cdl
+if ( ! -e perfect_input.nc ) ncgen -o perfect_input.nc perfect_input.cdl
+if ( ! -e filter_input.nc ) ncgen -o filter_input.nc filter_input.cdl
echo 'copying the workshop version of the input.nml into place'
cp -f input.workshop.nml input.nml
Modified: DART/branches/rma_single_file/models/lorenz_84/work/workshop_setup.csh
===================================================================
--- DART/branches/rma_single_file/models/lorenz_84/work/workshop_setup.csh 2017-02-08 19:09:26 UTC (rev 11034)
+++ DART/branches/rma_single_file/models/lorenz_84/work/workshop_setup.csh 2017-02-08 19:13:36 UTC (rev 11035)
@@ -53,9 +53,8 @@
exit 1
endif
-\rm -f perfect_input.nc filter_input.nc
-ncgen -o perfect_input.nc perfect_input.cdl
-ncgen -o filter_input.nc filter_input.cdl
+if ( ! -e perfect_input.nc ) ncgen -o perfect_input.nc perfect_input.cdl
+if ( ! -e filter_input.nc ) ncgen -o filter_input.nc filter_input.cdl
#----------------------------------------------------------------------
# 'preprocess' is a program that culls the appropriate sections of the
More information about the Dart-dev
mailing list