From 293385a3413ef41186c7ab3d90af39f6367040b3 Mon Sep 17 00:00:00 2001 From: zhi Date: Thu, 12 Dec 2024 20:44:59 -0500 Subject: [PATCH] fix --- Exec/unit_tests/diffusion_test/prob_util.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Exec/unit_tests/diffusion_test/prob_util.H b/Exec/unit_tests/diffusion_test/prob_util.H index 3ed971f050..cfe897f6e0 100644 --- a/Exec/unit_tests/diffusion_test/prob_util.H +++ b/Exec/unit_tests/diffusion_test/prob_util.H @@ -17,7 +17,7 @@ Real analytic(const Real* r, const Real time, const int coord_type) { Real dist2 = 0.0; if (coord_type == 2) { - dist2 = std::abs(r[0]); + dist2 = r[0]*r[0]; } else { for (int d = 0; d < AMREX_SPACEDIM; d++) { dist2 += r[d] * r[d];