[Dart-dev] DART/branches Revision: 11219
dart at ucar.edu
dart at ucar.edu
Tue Mar 7 11:26:49 MST 2017
hendric at ucar.edu
2017-03-07 11:26:49 -0700 (Tue, 07 Mar 2017)
75
have to change obs_diag paths with the full path
in the path_names file.
Modified: DART/branches/rma_rearrange/change_path.csh
===================================================================
--- DART/branches/rma_rearrange/change_path.csh 2017-03-07 18:18:06 UTC (rev 11218)
+++ DART/branches/rma_rearrange/change_path.csh 2017-03-07 18:26:49 UTC (rev 11219)
@@ -33,12 +33,7 @@
endif
endif
- if (`echo "$FILE_LINE" | grep "^diagnostics" ` != '') then
- echo " DIAGNOSTICS --- assimilation_code/programs/obs_diag"
- sed "s#^diagnostics#assimilation_code/programs/obs_diag#" $PATH_FILE.tmp >! $PATH_FILE
- endif
-
- if (`echo "$FILE_LINE" | grep "^location" ` != '') then
+ if (`echo "$FILE_LINE" | grep "location_mod.f90" ` != '') then
echo " LOCATION --- assimilation_code/location"
sed "s#^location#assimilation_code/location#" $PATH_FILE.tmp >! $PATH_FILE
endif
@@ -78,6 +73,38 @@
echo
echo "=================================================================="
echo "=================================================================="
+echo "Changing Pathnames Diagnostics: "`date`
+echo "=================================================================="
+echo "=================================================================="
+echo
+echo
+
+set NON_UNIQUE_FILE = 'not_unique_f90'
+
+foreach PATH_FILE(`find . -name "path_names_*" | sed "s/\.\///g"`)
+ echo " PATH_FILE : " $PATH_FILE
+ # grab just the filename and not the path
+ foreach FILE_LINE( `cat $PATH_FILE `)
+ # echo " init FILE_LINE --- $FILE_LINE"
+ # if it is not a unique file skip it
+ cp $PATH_FILE $PATH_FILE.tmp
+ if (`echo "$FILE_LINE" | grep "^diagnostics" ` != '') then
+ echo " FILE LINE" $FILE_LINE
+ echo " FIND DIAG `echo '$FILE_LINE' | grep '^diagnostics'`"
+ echo " DIAGNOSTICS --- assimilation_code/programs/obs_diag"
+ sed "s#diagnostics#assimilation_code/programs/obs_diag#" $PATH_FILE.tmp >! $PATH_FILE
+ endif
+
+ end
+
+ rm $PATH_FILE.tmp
+
+end
+
+echo
+echo
+echo "=================================================================="
+echo "=================================================================="
echo "Changing MKMFs : "`date`
echo "=================================================================="
echo "=================================================================="
More information about the Dart-dev
mailing list