Skip to content

Commit 3a03d92

Browse files
committed
FEAT: restart tests with cubesphere
1 parent 4e9953e commit 3a03d92

File tree

4 files changed

+124
-0
lines changed

4 files changed

+124
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
{
3+
"Debug" : {
4+
"iVerbose" : 0,
5+
"dt" : 10.0},
6+
7+
"GeoBlockSize" : {
8+
"nLons" : 18,
9+
"nLats" : 18,
10+
"nAlts" : 50},
11+
12+
"StartTime" : [2011, 3, 20, 0, 0, 0],
13+
"EndTime" : [2011, 3, 20, 0, 15, 0],
14+
15+
"Electrodynamics" : {
16+
"File" : "UA/inputs/b20110320n_omni.bin"},
17+
18+
"OmniwebFiles" : ["UA/inputs/omni_20110319.txt"],
19+
20+
"CubeSphere" : {
21+
"is" : true},
22+
23+
"Restart" : {
24+
"do" : false,
25+
"dt" : 900.0}
26+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
{
3+
"Debug" : {
4+
"iVerbose" : 0,
5+
"dt" : 10.0},
6+
7+
"GeoBlockSize" : {
8+
"nLons" : 18,
9+
"nLats" : 18,
10+
"nAlts" : 50},
11+
12+
"StartTime" : [2011, 3, 20, 0, 0, 0],
13+
"EndTime" : [2011, 3, 20, 0, 30, 0],
14+
15+
"Electrodynamics" : {
16+
"File" : "UA/inputs/b20110320n_omni.bin"},
17+
18+
"OmniwebFiles" : ["UA/inputs/omni_20110319.txt"],
19+
20+
"CubeSphere" : {
21+
"is" : true},
22+
23+
"Restart" : {
24+
"do" : true,
25+
"dt" : 900.0}
26+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
{
3+
"Debug" : {
4+
"iVerbose" : 0,
5+
"dt" : 10.0},
6+
7+
"GeoBlockSize" : {
8+
"nLons" : 18,
9+
"nLats" : 18,
10+
"nAlts" : 50},
11+
12+
"StartTime" : [2011, 3, 20, 0, 0, 0],
13+
"EndTime" : [2011, 3, 20, 0, 30, 0],
14+
15+
"Electrodynamics" : {
16+
"File" : "UA/inputs/b20110320n_omni.bin"},
17+
18+
"OmniwebFiles" : ["UA/inputs/omni_20110319.txt"],
19+
20+
"CubeSphere" : {
21+
"is" : true},
22+
23+
"Restart" : {
24+
"do" : false,
25+
"dt" : 900.0}
26+
}

tests/restart_cubesphere/run_test.sh

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#!/bin/sh
2+
3+
rm -rf run.halves run.whole
4+
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+
mpirun -np 6 ./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
13+
mpirun -np 6 ./aether
14+
# plot the output
15+
cd UA/output
16+
../../../../../srcPython/postAether.py -alt=-1 -rm
17+
18+
# [O]:
19+
aether_plot_simple.py -var=density_O -alt=250 3DALL_20110320_003000.nc -polar
20+
# Eastward Ion Velocity
21+
aether_plot_simple.py -var=velocity_east_ion -alt=250 3DALL_20110320_003000.nc -polar
22+
# [e-]
23+
aether_plot_simple.py -var=density_e- -alt=250 3DALL_20110320_003000.nc -polar
24+
25+
cd ../../..
26+
27+
cp -R ../../share/run ./run.whole
28+
cd run.whole
29+
cp ../aether.whole.json ./aether.json
30+
mpirun -np 6 ./aether
31+
# plot the output
32+
cd UA/output
33+
../../../../../srcPython/postAether.py -alt=-1 -rm
34+
# [O]:
35+
aether_plot_simple.py -var=density_O -alt=250 3DALL_20110320_003000.nc -polar
36+
# Eastward Ion Velocity
37+
aether_plot_simple.py -var=velocity_east_ion -alt=250 3DALL_20110320_003000.nc -polar
38+
# [e-]
39+
aether_plot_simple.py -var=density_e- -alt=250 3DALL_20110320_003000.nc -polar
40+
41+
cd ../../..
42+
43+
# you can then look at:
44+
# restarted run results: run.halves/UA/output/*.png
45+
# whole run results: run.whole/UA/output/*.png
46+
# using whatever viewer you have

0 commit comments

Comments
 (0)