diff --git a/Exec/unit_tests/diffusion_test/README.md b/Exec/unit_tests/diffusion_test/README.md index b7f030bc69..0d26264dec 100644 --- a/Exec/unit_tests/diffusion_test/README.md +++ b/Exec/unit_tests/diffusion_test/README.md @@ -40,17 +40,17 @@ analyic solution) at the end of the simulation. This can be used for convergence testing. -## 2-d cylindrical with AMR +## 2-d axisymmetric with AMR This uses the 2nd order accurate predictor-corrector formulation of diffusion that is used with the CTU hydrodynamics solver. A test of -the diffusion in 2-d cylindrical coordinates, with 2 levels of -refinement can be run as: +the diffusion in 2-d cylindrical axisymmetric coordinates, +with 2 levels of refinement can be run as: ``` -./Castro2d.gnu.ex inputs.2d.cyl amr.n_cell=64 128 -./Castro2d.gnu.ex inputs.2d.cyl amr.n_cell=128 256 -./Castro2d.gnu.ex inputs.2d.cyl amr.n_cell=256 512 +./Castro2d.gnu.ex inputs.2d.axisymmetric amr.n_cell=64 128 +./Castro2d.gnu.ex inputs.2d.axisymmetric amr.n_cell=128 256 +./Castro2d.gnu.ex inputs.2d.axisymmetric amr.n_cell=256 512 ``` At the end, each run will report the norm of the error against the diff --git a/Exec/unit_tests/diffusion_test/inputs.2d.cyl b/Exec/unit_tests/diffusion_test/inputs.2d.axisymmetric similarity index 100% rename from Exec/unit_tests/diffusion_test/inputs.2d.cyl rename to Exec/unit_tests/diffusion_test/inputs.2d.axisymmetric diff --git a/Exec/unit_tests/diffusion_test/prob_util.H b/Exec/unit_tests/diffusion_test/prob_util.H index cfe897f6e0..db2a798522 100644 --- a/Exec/unit_tests/diffusion_test/prob_util.H +++ b/Exec/unit_tests/diffusion_test/prob_util.H @@ -5,7 +5,7 @@ AMREX_GPU_HOST_DEVICE AMREX_INLINE Real analytic(const Real* r, const Real time, const int coord_type) { Real exponent; - if (AMREX_SPACEDIM == 1 && coord_type == 2) { + if (coord_type == 2) { // Handle spherical coordinates exponent = 3.0_rt / 2.0_rt; } else if (AMREX_SPACEDIM == 2 && coord_type == 1) {