Skip to content

Commit

Permalink
matrix_divider_cmake.sh: edit #SBATCH -J to have 8-char job id
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewMasarik-NOAA committed Nov 3, 2023
1 parent f702a8f commit ce69884
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions regtests/bin/matrix_divider_cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ count=0
cat list_mpi_$i >> matrix${countf}
sed -i 's/'matrix.out'/'matrix${countf}.out'/gI' matrix${countf}
sed -i 's/'buildmatrix'/'buildmatrix${countf}'/gI' matrix${countf}
sed -i 's/'ww3_regtest'/'ww3_regtest_${countf}'/gI' matrix${countf}
sed -i 's/'ww3_regtest'/'ww3_rt${countf}'/gI' matrix${countf}
echo ' [[ -d ${path_build_root} ]] && rm -rf ${path_build_root}*' >> matrix${countf}
echo " echo ' '" >> matrix${countf}
echo " echo ' **************************************************************'" >> matrix${countf}
Expand All @@ -95,7 +95,7 @@ count=0
cat list_omp_$i >> matrix${countf}
sed -i 's/'matrix.out'/'matrix${countf}.out'/gI' matrix${countf}
sed -i 's/'buildmatrix'/'buildmatrix${countf}'/gI' matrix${countf}
sed -i 's/'ww3_regtest'/'ww3_regtest_${countf}'/gI' matrix${countf}
sed -i 's/'ww3_regtest'/'ww3_rt${countf}'/gI' matrix${countf}
echo ' [[ -d ${path_build_root} ]] && rm -rf ${path_build_root}*' >> matrix${countf}
echo " echo ' '" >> matrix${countf}
echo " echo ' **************************************************************'" >> matrix${countf}
Expand All @@ -116,7 +116,7 @@ count=0
cat list_serial_$i >> matrix${countf}
sed -i 's/'matrix.out'/'matrix${countf}.out'/gI' matrix${countf}
sed -i 's/'buildmatrix'/'buildmatrix${countf}'/gI' matrix${countf}
sed -i 's/'ww3_regtest'/'ww3_regtest_${countf}'/gI' matrix${countf}
sed -i 's/'ww3_regtest'/'ww3_rt${countf}'/gI' matrix${countf}
echo ' [[ -d ${path_build_root} ]] && rm -rf ${path_build_root}*' >> matrix${countf}
echo " echo ' '" >> matrix${countf}
echo " echo ' **************************************************************'" >> matrix${countf}
Expand All @@ -128,7 +128,7 @@ count=0

# --------------------------------------------------------------------------- #

#ww3_tp2.14 is separated, as it has dependency.
#ww3_tp2.14 is separated, as it has dependency.
#ww3_tp2.17 and ww3_tp2.21 is separated, as it takes a long time to finish
(( count = count + 1 ))
countf=$(printf %02i $count)
Expand All @@ -137,7 +137,7 @@ count=0
cat list_heavy >> matrix${countf}
sed -i 's/'matrix.out'/'matrix${countf}.out'/gI' matrix${countf}
sed -i 's/'buildmatrix'/'buildmatrix${countf}'/gI' matrix${countf}
sed -i 's/'ww3_regtest'/'ww3_regtest_${countf}'/gI' matrix${countf}
sed -i 's/'ww3_regtest'/'ww3_rt${countf}'/gI' matrix${countf}
echo ' [[ -d ${path_build_root} ]] && rm -rf ${path_build_root}*' >> matrix${countf}
echo " echo ' '" >> matrix${countf}
echo " echo ' **************************************************************'" >> matrix${countf}
Expand All @@ -158,7 +158,7 @@ count=0
sed -i 's/'matrix.out'/'matrix${countf}.out'/gI' matrix${countf}
sed -i 's/'##SBATCH'/'#SBATCH'/gI' matrix${countf}
sed -i 's/'buildmatrix'/'buildmatrix${countf}'/gI' matrix${countf}
sed -i 's/'ww3_regtest'/'ww3_regtest_${countf}'/gI' matrix${countf}
sed -i 's/'ww3_regtest'/'ww3_rt${countf}'/gI' matrix${countf}
echo ' [[ -d ${path_build_root} ]] && rm -rf ${path_build_root}*' >> matrix${countf}
echo " echo ' '" >> matrix${countf}
echo " echo ' **************************************************************'" >> matrix${countf}
Expand All @@ -178,4 +178,3 @@ rm list*
# --------------------------------------------------------------------------- #
# End to matrix_divider #
# --------------------------------------------------------------------------- #

0 comments on commit ce69884

Please sign in to comment.