|
1 | 1 | #!/bin/bash |
2 | 2 |
|
3 | 3 | rep_2D_mpi_list="HD/MachReflection HD/ViscousFlowPastCylinder HD/FargoPlanet MHD/OrszagTang" |
4 | | -rep_3D_mpi_list="HD/SedovBlastWave MHD/AmbipolarCshock3D MHD/AxisFluxTube MHD/LinearWaveTest MHD/FargoMHDSpherical MHD/OrszagTang3D" |
| 4 | +rep_3D_mpi_list="MHD/AmbipolarCshock3D MHD/AxisFluxTube MHD/LinearWaveTest MHD/FargoMHDSpherical MHD/OrszagTang3D" |
5 | 5 |
|
6 | 6 | # refer to the parent dir of this file, wherever this is called from |
7 | 7 | # a python equivalent is e.g. |
@@ -102,5 +102,62 @@ for rep in $rep_3D_mpi_list; do |
102 | 102 | cd $TEST_DIR |
103 | 103 | done |
104 | 104 |
|
| 105 | +# Blast wave test |
| 106 | +rep="HD/SedovBlastWave" |
| 107 | + |
| 108 | +## Cartesian blast |
| 109 | +cp -R $TEST_DIR/$rep $TMP_DIR/$rep |
| 110 | +cd $TMP_DIR/$rep |
| 111 | +echo "***********************************************" |
| 112 | +echo "Configuring $rep" |
| 113 | +echo "Using $TMP_DIR/$rep as working directory" |
| 114 | +echo "***********************************************" |
| 115 | +rm -f CMakeCache.txt |
| 116 | +cmake $IDEFIX_DIR -DIdefix_MPI=ON $options |
| 117 | +echo "***********************************************" |
| 118 | +echo "Making $rep" |
| 119 | +echo "***********************************************" |
| 120 | +make clean; make -j 10 |
| 121 | + |
| 122 | +ini="idefix.ini" |
| 123 | +echo "***********************************************" |
| 124 | +echo "Running $rep with $ini" |
| 125 | +echo "***********************************************" |
| 126 | +mpirun -np 8 ./idefix -i $ini -dec 2 2 2 -nolog |
| 127 | + |
| 128 | +cd python |
| 129 | +echo "***********************************************" |
| 130 | +echo "Testing $rep with $ini" |
| 131 | +echo "***********************************************" |
| 132 | +python3 testidefix.py -noplot -i ../$ini |
| 133 | +cd .. |
| 134 | + |
| 135 | +## Spherical blast |
| 136 | +echo "***********************************************" |
| 137 | +echo "Configuring $rep in spherical geometry" |
| 138 | +echo "Using $TMP_DIR/$rep as working directory" |
| 139 | +echo "***********************************************" |
| 140 | +rm -f CMakeCache.txt |
| 141 | +cmake $IDEFIX_DIR -DIdefix_MPI=ON -DIdefix_DEFS=definitions-spherical.hpp $options |
| 142 | +echo "***********************************************" |
| 143 | +echo "Making $rep" |
| 144 | +echo "***********************************************" |
| 145 | +make clean; make -j 10 |
| 146 | + |
| 147 | +ini="idefix-spherical.ini" |
| 148 | +echo "***********************************************" |
| 149 | +echo "Running $rep with $ini" |
| 150 | +echo "***********************************************" |
| 151 | +mpirun -np 8 ./idefix -i $ini -dec 2 2 2 -nolog |
| 152 | + |
| 153 | +cd python |
| 154 | +echo "***********************************************" |
| 155 | +echo "Testing $rep with $ini" |
| 156 | +echo "***********************************************" |
| 157 | +python3 testidefix.py -noplot -i ../$ini |
| 158 | + |
| 159 | +cd $TEST_DIR |
| 160 | + |
| 161 | + |
105 | 162 | echo "Cleaning temporary directory $TMP_DIR" |
106 | 163 | rm -rf $TMP_DIR |
0 commit comments