@@ -855,62 +855,6 @@ endif
855855@CICE6 sed -i -E 's/^[[:space:]]*restart_pond_lvl[[:space:]]*=[[:space:]]*\.true\./ restart_pond_lvl = .false./' ice_in
856856@CICE6 endif
857857
858- #######################################################################
859- # Split Saltwater Restart if detected
860- #######################################################################
861-
862- if ( (-e $SCRDIR /openwater_internal_rst) && (-e $SCRDIR /seaicethermo_internal_rst)) then
863- echo " Saltwater internal state is already split, good to go!"
864- else
865- if ( ( ( -e $SCRDIR /saltwater_internal_rst ) || ( -e $EXPDIR /saltwater_internal_rst) ) && ( $counter == 1 ) ) then
866-
867- echo " Found Saltwater internal state. Splitting..."
868-
869- # If saltwater_internal_rst is in EXPDIR move to SCRDIR
870- # -----------------------------------------------------
871- if ( -e $EXPDIR /saltwater_internal_rst ) /bin/cp $EXPDIR /saltwater_internal_rst $SCRDIR
872-
873- # The splitter script requires an OutData directory
874- # -------------------------------------------------
875- if (! -d OutData ) mkdir -p OutData
876-
877- # Run the script
878- # --------------
879- @SINGULARITY_BUILD $RUN_CMD 1 $SINGULARITY_RUN $GEOSBIN /SaltIntSplitter tile.data $SCRDIR /saltwater_internal_rst
880- @NATIVE_BUILD $RUN_CMD 1 $GEOSBIN /SaltIntSplitter tile.data $SCRDIR /saltwater_internal_rst
881-
882- # Move restarts
883- # -------------
884- /bin/mv OutData/openwater_internal_rst OutData/seaicethermo_internal_rst .
885-
886- # Remove OutData
887- # --------------
888- /bin/rmdir OutData
889-
890- if (-e $EXPDIR /restarts/restarts.${edate} .tar ) then
891- # Make decorated copies for restarts tarball
892- # ------------------------------------------
893- cp openwater_internal_rst $EXPID .openwater_internal_rst.${edate} .${GCMVER} .${BCTAG} _${BCRSLV}
894- cp seaicethermo_internal_rst $EXPID .seaicethermo_internal_rst.${edate} .${GCMVER} .${BCTAG} _${BCRSLV}
895-
896- # Inject decorated copies into restarts tarball
897- # ---------------------------------------------
898- tar rf $EXPDIR /restarts/restarts.${edate} .tar $EXPID .* .${edate} .${GCMVER} .${BCTAG} _${BCRSLV}
899-
900- # Remove the decorated restarts
901- # -----------------------------
902- /bin/rm $EXPID .* .${edate} .${GCMVER} .${BCTAG} _${BCRSLV}
903- endif
904-
905- # Remove the saltwater internal restart
906- # -------------------------------------
907- /bin/rm $SCRDIR /saltwater_internal_rst
908- else
909- echo " Neither saltwater_internal_rst, nor openwater_internal_rst and seaicethermo_internal_rst were found. Abort!"
910- exit 6
911- endif
912- endif
913-
914858# Test Openwater Restart for Number of tiles correctness
915859# ------------------------------------------------------
916860
0 commit comments