Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Dec 13, 2024
1 parent ee20f23 commit 293385a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Exec/unit_tests/diffusion_test/prob_util.H
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 293385a

Please sign in to comment.