[Dart-dev] DART/branches Revision: 13046
dart at ucar.edu
dart at ucar.edu
Thu Mar 21 11:53:40 MDT 2019
raeder at ucar.edu
2019-03-21 11:53:40 -0600 (Thu, 21 Mar 2019)
285
When making copies of original CESM .xml files I think it's better to
use the cp -n option instead of -f, since it's the originals we're trying
to preserve, not the latest version. It's probably irrelevant, since
the setup script always starts with a new, empty caseroot directory.
Modified: DART/branches/recam/models/cam-fv/shell_scripts/cesm2_1/setup_advanced
===================================================================
--- DART/branches/recam/models/cam-fv/shell_scripts/cesm2_1/setup_advanced 2019-03-21 16:54:38 UTC (rev 13045)
+++ DART/branches/recam/models/cam-fv/shell_scripts/cesm2_1/setup_advanced 2019-03-21 17:53:40 UTC (rev 13046)
@@ -475,7 +475,7 @@
else
setenv setup_file_name $0:t
endif
-${COPY} -f $setup_file_name ${caseroot}/${setup_file_name}.original
+${COPY} -n $setup_file_name ${caseroot}/${setup_file_name}.original
# ==============================================================================
# Configure the case.
@@ -487,7 +487,7 @@
foreach FILE ( *xml )
if ( ! -e ${FILE}.original ) then
- ${COPY} -f ${FILE} ${FILE}.original
+ ${COPY} -n ${FILE} ${FILE}.original
endif
end
More information about the Dart-dev
mailing list