Changeset 3317 for trunk/LMDZ.COMMON/libf/evolution/deftank
- Timestamp:
- Apr 25, 2024, 5:16:51 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/deftank/launch_pem.sh
r3296 r3317 190 190 echo "Run PEM $iPEM..." 191 191 cp run_PEM.def run.def 192 mv startfi.nc startfi_evol.nc193 if [ -f "start.nc" ]; then194 mv start.nc start_evol.nc195 elif [ -f "start1D.txt" ]; then196 mv start1D.txt start1D_evol.txt197 fi198 192 ./$exePEM > out_runPEM${iPEM} 2>&1 199 if [ ! -f "restartfi _evol.nc" ]; then # Check if run ended abnormally193 if [ ! -f "restartfi.nc" ]; then # Check if run ended abnormally 200 194 echo "Error: the run PEM $iPEM crashed!" 201 195 exit 1 … … 209 203 cp restartpem.nc starts/startpem${iPEM}.nc 210 204 mv restartpem.nc startpem.nc 211 cp restartfi _evol.nc starts/startfi_postPEM${iPEM}.nc212 mv restartfi _evol.nc startfi.nc213 if [ -f "restart _evol.nc" ]; then214 cp restart _evol.nc starts/restart_postPEM${iPEM}.nc215 mv restart _evol.nc start.nc216 elif [ -f "restart1D _evol.txt" ]; then217 cp restart1D _evol.txt starts/restart1D_postPEM${iPEM}.txt218 mv restart1D _evol.txt start1D.txt205 cp restartfi.nc starts/startfi_postPEM${iPEM}.nc 206 mv restartfi.nc startfi.nc 207 if [ -f "restart.nc" ]; then 208 cp restart.nc starts/restart_postPEM${iPEM}.nc 209 mv restart.nc start.nc 210 elif [ -f "restart1D.txt" ]; then 211 cp restart1D.txt starts/restart1D_postPEM${iPEM}.txt 212 mv restart1D.txt start1D.txt 219 213 fi 220 214 ((iPEM++)) … … 274 268 echo "Run PEM $iPEM..." 275 269 cp run_PEM.def run.def 276 mv startfi.nc startfi_evol.nc277 if [ -f "start.nc" ]; then278 mv start.nc start_evol.nc279 elif [ -f "start1D.txt" ]; then280 mv start1D.txt start1D_evol.txt281 fi282 270 ./$exePEM > out_runPEM${iPEM} 2>&1 283 if [ ! -f "restartfi _evol.nc" ]; then # Check if run ended abnormally271 if [ ! -f "restartfi.nc" ]; then # Check if run ended abnormally 284 272 echo "Error: the run PEM $iPEM crashed!" 285 273 exit 1 … … 293 281 cp restartpem.nc starts/startpem${iPEM}.nc 294 282 mv restartpem.nc startpem.nc 295 cp restartfi _evol.nc starts/startfi_postPEM${iPEM}.nc296 mv restartfi _evol.nc startfi.nc297 if [ -f "restart _evol.nc" ]; then298 cp restart _evol.nc starts/restart_postPEM${iPEM}.nc299 mv restart _evol.nc start.nc300 elif [ -f "restart1D _evol.txt" ]; then301 cp restart1D _evol.txt starts/restart1D_postPEM${iPEM}.txt302 mv restart1D _evol.txt start1D.txt283 cp restartfi.nc starts/startfi_postPEM${iPEM}.nc 284 mv restartfi.nc startfi.nc 285 if [ -f "restart.nc" ]; then 286 cp restart.nc starts/restart_postPEM${iPEM}.nc 287 mv restart.nc start.nc 288 elif [ -f "restart1D.txt" ]; then 289 cp restart1D.txt starts/restart1D_postPEM${iPEM}.txt 290 mv restart1D.txt start1D.txt 303 291 fi 304 292 ((iPEM++))
Note: See TracChangeset
for help on using the changeset viewer.