|
1 | 1 | #!/bin/bash
|
2 | 2 |
|
3 | 3 | # Prerequisite
|
4 |
| -# SWM_AMREX_ROOT must be set to the top level of the AMReX version of the mini-app. |
| 4 | +# AMREX_HOME = the directory where you pulled the AMReX repo. |
| 5 | +# SWM_AMREX_ROOT = the directory containing the AMReX version of the SWM mini-app. |
| 6 | + |
| 7 | +############################################################################## |
| 8 | +# User Input |
| 9 | +############################################################################## |
| 10 | +# The exact executable name may vary depending on the compiler and build options you used. |
| 11 | +# You may need to change this to match what is produced by your build. |
| 12 | + |
| 13 | +main_exe="$SWM_AMREX_ROOT"/main2d.gnu.ex |
| 14 | + |
| 15 | +fcompare_exe="$AMREX_HOME"/Tools/Plotfile/fcompare.gnu.ex |
| 16 | + |
| 17 | +############################################################################## |
| 18 | +# Setup |
| 19 | +############################################################################## |
5 | 20 |
|
6 | 21 | set -e
|
7 | 22 | set -u
|
@@ -39,8 +54,7 @@ mkdir -p "$run_dir"
|
39 | 54 | cd "$run_dir"
|
40 | 55 |
|
41 | 56 | # TODO: Make the executable name a variable so that we can run the MPI, OpenMP, and Cuda versions with the same script
|
42 |
| -"$SWM_AMREX_ROOT"/main2d.gnu.ex "$SWM_AMREX_ROOT"/inputs |
43 |
| -#"$SWM_AMREX_ROOT"/main2d.gnu.MPI.ex "$SWM_AMREX_ROOT"/inputs |
| 57 | +$main_exe "$SWM_AMREX_ROOT"/inputs |
44 | 58 |
|
45 | 59 | ##############################################################################
|
46 | 60 | # Solution Verification
|
|
52 | 66 |
|
53 | 67 | # TODO: Make the plotfile name a so it automatically finds the plotfile for the last time step
|
54 | 68 | # TODO: Do a check to see if the corresponding reference plotfile exists step
|
55 |
| -$AMREX_HOME/Tools/Plotfile/fcompare.gnu.ex plt04000 "$SWM_AMREX_ROOT"/plt04000_reference |
| 69 | +$fcompare_exe plt04000 "$SWM_AMREX_ROOT"/plt04000_reference |
56 | 70 |
|
57 | 71 | if [ $? -eq 0 ]; then
|
58 | 72 | echo -e "\nSolution Verification: PASS"
|
|
0 commit comments