Skip to content

Commit

Permalink
FEAT: ie test with sphere and cube
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronjridley committed Nov 15, 2023
1 parent 73fc1cc commit 6f8182b
Show file tree
Hide file tree
Showing 3 changed files with 134 additions and 0 deletions.
44 changes: 44 additions & 0 deletions tests/ie_test/aether.json.cube.ie_test
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

{
"Ensembles" : {
"nMembers" : 1},

"Debug" : {
"iVerbose" : 0,
"iFunctionVerbose" : {
"Grid::create_altitudes": 0},
"dt" : 10.0,
"check_for_nans" : false
},

"EndTime" : [2011, 3, 20, 0, 10, 0],

"GeoBlockSize" : {
"nLons" : 20,
"nLats" : 20,
"nAlts" : 50},

"CubeSphere" : {
"is" : true},

"Electrodynamics" : {
"Potential" : "Weimer05",
"DiffuseAurora" : "fta",
"Dir" : "UA/inputs/ext/ie/",
"File" : ""},

"GeoGrid" : {
"dAlt" : 0.25,
"IsUniformAlt" : false},

"OmniwebFiles" : ["UA/inputs/omni_20110319.txt"],

"Outputs" : {
"type" : ["states"],
"dt" : [900] },

"DoCalcBulkIonTemp" : false,

"PlanetFile" : "UA/inputs/earth.in"

}
44 changes: 44 additions & 0 deletions tests/ie_test/aether.json.sphere.ie_test
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

{
"Ensembles" : {
"nMembers" : 1},

"Debug" : {
"iVerbose" : 0,
"iFunctionVerbose" : {
"Grid::create_altitudes": 0},
"dt" : 10.0,
"check_for_nans" : false
},

"EndTime" : [2011, 3, 20, 0, 10, 0],

"GeoBlockSize" : {
"nLons" : 22,
"nLats" : 18,
"nAlts" : 50},

"CubeSphere" : {
"is" : false},

"Electrodynamics" : {
"Potential" : "Weimer05",
"DiffuseAurora" : "fta",
"Dir" : "UA/inputs/ext/ie/",
"File" : ""},

"GeoGrid" : {
"dAlt" : 0.25,
"IsUniformAlt" : false},

"OmniwebFiles" : ["UA/inputs/omni_20110319.txt"],

"Outputs" : {
"type" : ["states"],
"dt" : [900] },

"DoCalcBulkIonTemp" : false,

"PlanetFile" : "UA/inputs/earth.in"

}
46 changes: 46 additions & 0 deletions tests/ie_test/run_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/bin/sh

# remove old directories:
rm -rf build run.*

# make code WITH Fortran:
mkdir build
cd build
cmake -DUSE_FORTRAN=Y ../../..
make -j4
cd ..
cp -R ../../share/run ./run.ie
cd run.ie

# run IE with spherical
cp ../aether.json.sphere.ie_test ./aether.json
mpirun -np 4 ./aether
cd UA/output
../../../../../srcPython/postAether.py -rm
# This assumes aetherpy is installed and the plotter is in the bin directory:
~/bin/run_plot_block_model_results.py -var=Temperature -alt=20 3DALL_20110320_001500.nc
~/bin/run_plot_block_model_results.py -var=Potential -alt=20 3DALL_20110320_001500.nc
# into UA directory
cd ..
mv output output.ie_sphere
mkdir output
# into run directory
cd ..

# run with MSIS (this should be different from the other three runs!):
cp ../aether.json.cube.ie_test ./aether.json
mpirun -np 6 ./aether
cd UA/output
../../../../../srcPython/postAether.py -rm
# This assumes aetherpy is installed and the plotter is in the bin directory:
~/bin/run_plot_block_model_results.py -var=Temperature -alt=20 3DALL_20110320_001500.nc
~/bin/run_plot_block_model_results.py -var=Potential -alt=20 3DALL_20110320_001500.nc
# into UA directory
cd ..
mv output output.ie_sphere
mkdir output
# into run directory
cd ..



0 comments on commit 6f8182b

Please sign in to comment.