Changeset 3430 for trunk/LMDZ.COMMON/libf/evolution/deftank
- Timestamp:
- Sep 18, 2024, 4:09:02 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/deftank/lib_launchPEM.sh
r3428 r3430 175 175 sed -i "s/^k=[0-9]\+$/k=$(echo "3 - $nPCM_ini" | bc -l)/" PCMrun.job 176 176 ./PCMrun.job 177 if [ $? -ne 0 ]; then 178 errlaunch 179 fi 177 180 else # 3D model 178 181 cp PCMrun.job PCMrun${iPCM}.job … … 197 200 sed -i "s/^k=[0-9]\+$/k=$(echo "$i + 2 - $nPCM_ini" | bc -l)/" PCMrun.job 198 201 ./PCMrun.job 202 if [ $? -ne 0 ]; then 203 errlaunch 204 fi 199 205 else # 3D model 200 206 cp PCMrun.job PCMrun${iPCM}.job … … 219 225 if [ $1 -eq 1 ]; then # 1D model 220 226 ./PEMrun.job 227 if [ $? -ne 0 ]; then 228 errlaunch 229 fi 221 230 else # 3D model 222 231 sed -i -E "s/($name_job[^0-9]*[0-9]*[^0-9]*)[0-9]+$/\1${iPEM}/" PEMrun.job … … 245 254 if [ $1 -eq 1 ]; then # 1D model 246 255 ./PEMrun.job 256 if [ $? -ne 0 ]; then 257 errlaunch 258 fi 247 259 else # 3D model 248 260 sed -i -E "s/($name_job[^0-9]*[0-9]*[^0-9]*)[0-9]+$/\1${iPEM}/" PEMrun.job … … 351 363 # arg1: model dimension 352 364 relaunchPEM() { 353 iPEM=$ irelaunch365 iPEM=$(($irelaunch + 1)) 354 366 iPCM=$(($nPCM_ini + $nPCM*($irelaunch - 1) + 1)) 355 367 i_myear=$(awk "NR==$(($iPEM + 1)) {print \$1}" "info_PEM.txt")
Note: See TracChangeset
for help on using the changeset viewer.