Skip to content

Commit 4e9953e

Browse files
committed
MAIN: get restarts working again
1 parent ee8b607 commit 4e9953e

File tree

4 files changed

+50
-41
lines changed

4 files changed

+50
-41
lines changed

tests/restarts/aether.first.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,20 @@
33

44
"Debug" : {
55
"iVerbose" : 0,
6-
"dt" : 60.0},
7-
8-
"Mysetting" : {
9-
"setting1" : "this_is_an_example",
10-
"setting2" : 42,
11-
"setting3" : true},
6+
"dt" : 10.0},
127

8+
"GeoBlockSize" : {
9+
"nLons" : 18,
10+
"nLats" : 18,
11+
"nAlts" : 50},
12+
1313
"StartTime" : [2011, 3, 20, 0, 0, 0],
14-
"EndTime" : [2011, 3, 20, 0, 45, 0],
14+
"EndTime" : [2011, 3, 20, 0, 15, 0],
1515

16+
"Electrodynamics" : {
17+
"File" : "UA/inputs/b20110320n_omni.bin"},
18+
1619
"OmniwebFiles" : ["UA/inputs/omni_20110319.txt"],
17-
"ElectrodynamicsFile" : "UA/inputs/b20110320n_omni.bin",
1820

1921
"Restart" : {
2022
"do" : false,

tests/restarts/aether.second.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,20 @@
33

44
"Debug" : {
55
"iVerbose" : 0,
6-
"dt" : 60.0},
7-
8-
"Mysetting" : {
9-
"setting1" : "this_is_an_example",
10-
"setting2" : 42,
11-
"setting3" : true},
6+
"dt" : 10.0},
127

8+
"GeoBlockSize" : {
9+
"nLons" : 18,
10+
"nLats" : 18,
11+
"nAlts" : 50},
12+
1313
"StartTime" : [2011, 3, 20, 0, 0, 0],
14-
"EndTime" : [2011, 3, 20, 1, 0, 0],
14+
"EndTime" : [2011, 3, 20, 0, 30, 0],
1515

16+
"Electrodynamics" : {
17+
"File" : "UA/inputs/b20110320n_omni.bin"},
18+
1619
"OmniwebFiles" : ["UA/inputs/omni_20110319.txt"],
17-
"ElectrodynamicsFile" : "UA/inputs/b20110320n_omni.bin",
1820

1921
"Restart" : {
2022
"do" : true,

tests/restarts/aether.whole.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,20 @@
33

44
"Debug" : {
55
"iVerbose" : 0,
6-
"dt" : 60.0},
7-
8-
"Mysetting" : {
9-
"setting1" : "this_is_an_example",
10-
"setting2" : 42,
11-
"setting3" : true},
6+
"dt" : 10.0},
127

8+
"GeoBlockSize" : {
9+
"nLons" : 18,
10+
"nLats" : 18,
11+
"nAlts" : 50},
12+
1313
"StartTime" : [2011, 3, 20, 0, 0, 0],
14-
"EndTime" : [2011, 3, 20, 1, 0, 0],
14+
"EndTime" : [2011, 3, 20, 0, 30, 0],
1515

16+
"Electrodynamics" : {
17+
"File" : "UA/inputs/b20110320n_omni.bin"},
18+
1619
"OmniwebFiles" : ["UA/inputs/omni_20110319.txt"],
17-
"ElectrodynamicsFile" : "UA/inputs/b20110320n_omni.bin",
1820

1921
"Restart" : {
2022
"do" : false,

tests/restarts/run_test.sh

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,41 @@
22

33
rm -rf run.halves run.whole
44

5-
cp -R ../../share/run ./run.whole
6-
cd run.whole
7-
cp ../aether.whole.json ./aether.json
5+
cp -R ../../share/run ./run.halves
6+
cd run.halves
7+
# first part of the run
8+
cp ../aether.first.json ./aether.json
9+
./aether
10+
cd UA ; rm -f restartIn ; cp -R restartOut restartIn ; cd ..
11+
# second part of the run
12+
cp ../aether.second.json ./aether.json
813
./aether
914
# plot the output
1015
cd UA/output
16+
../../../../../srcPython/postAether.py -alt=-1 -rm
17+
1118
# [O]:
12-
run_plot_model_results.py -var=3 -alt=250 3DALL_20110320_010000.nc
19+
aether_plot_simple.py -var=density_O -alt=250 3DALL_20110320_003000.nc
1320
# Tn:
14-
run_plot_model_results.py -var=14 -alt=250 3DALL_20110320_010000.nc
21+
aether_plot_simple.py -var=Temperature_neutral -alt=250 3DALL_20110320_003000.nc
1522
# [e-]
16-
run_plot_model_results.py -var=23 -alt=250 3DALL_20110320_010000.nc
23+
aether_plot_simple.py -var=density_e- -alt=250 3DALL_20110320_003000.nc
1724

1825
cd ../../..
1926

20-
cp -R ../../share/run ./run.halves
21-
cd run.halves
22-
# first part of the run
23-
cp ../aether.first.json ./aether.json
24-
./aether
25-
cd UA ; rm -f restartIn ; cp -R restartOut restartIn ; cd ..
26-
# second part of the run
27-
cp ../aether.second.json ./aether.json
27+
cp -R ../../share/run ./run.whole
28+
cd run.whole
29+
cp ../aether.whole.json ./aether.json
2830
./aether
2931
# plot the output
3032
cd UA/output
33+
../../../../../srcPython/postAether.py -alt=-1 -rm
3134
# [O]:
32-
run_plot_model_results.py -var=3 -alt=250 3DALL_20110320_010000.nc
35+
aether_plot_simple.py -var=density_O -alt=250 3DALL_20110320_003000.nc
3336
# Tn:
34-
run_plot_model_results.py -var=14 -alt=250 3DALL_20110320_010000.nc
37+
aether_plot_simple.py -var=Temperature_neutral -alt=250 3DALL_20110320_003000.nc
3538
# [e-]
36-
run_plot_model_results.py -var=23 -alt=250 3DALL_20110320_010000.nc
39+
aether_plot_simple.py -var=density_e- -alt=250 3DALL_20110320_003000.nc
3740

3841
cd ../../..
3942

0 commit comments

Comments
 (0)