Skip to content

Commit 64024f1

Browse files
committed
FEAT: use python code for restarts
1 parent ef641ee commit 64024f1

File tree

1 file changed

+6
-33
lines changed

1 file changed

+6
-33
lines changed

tests/restart_ensembles/run_all.sh

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,11 @@
11
#!/bin/sh
22

3-
rm -rf run.test
4-
cp -R ../../share/run ./run.test
5-
cd run.test
3+
NPROC=5
4+
TOTALTIME=180
5+
MPI=/Users/ridley/Software/Mpi/installed/bin/mpirun
6+
NTIMES=2
67

7-
rm -f aether.json UA/output/*
8-
rm -rf UA/restart* ; mkdir UA/restartOut
9-
rm -rf UA/output_whole
10-
rm -rf UA/output_nonperturbed
11-
rm -rf UA/output_perturbed
12-
rm -rf UA/output_save
13-
14-
cp ../aether.json.whole aether.json
15-
mpirun -np 20 ./aether
16-
cd UA/output ; ../../../../../srcPython/plot_logfiles.py -vars=10 log_m00*.txt ; cd -
17-
cd UA ; mv output output_whole ; mkdir output ; cd -
18-
rm -f aether.json
19-
20-
rm -f aether.json UA/output/* UA/restartOut/*
21-
cp ../aether.json.start aether.json
22-
mpirun -np 20 ./aether
23-
cd UA ; mv restartOut restartIn ; mkdir restartOut ; cd -
24-
cd UA ; cp -R output output_save ; cd ..
25-
26-
rm -f aether.json
27-
cp ../aether.json.restart1 aether.json
28-
mpirun -np 20 ./aether
29-
cd UA/output ; ../../../../../srcPython/plot_logfiles.py -vars=10 log_m00*.txt ; cd -
30-
cd UA ; mv output output_nonperturbed ; cp -R output_save output ; cd -
31-
32-
rm -f aether.json
33-
cp ../aether.json.restart2 aether.json
34-
mpirun -np 20 ./aether
35-
cd UA/output ; ../../../../../srcPython/plot_logfiles.py -vars=10 log_m00*.txt ; cd -
36-
cd UA ; mv output output_perturbed ; mkdir output ; cd -
8+
# include -dowhole to run the whole simulation as comparison:
379

10+
../../srcPython/run_restarts.py -totaltime=${TOTALTIME} -mpi=${MPI} -rundir=../../share/run -ensembles=${NPROC} -restarts=${NTIMES}
3811

0 commit comments

Comments
 (0)