Skip to content

Commit

Permalink
Initializing all values so that it is not returning uninitialized gar…
Browse files Browse the repository at this point in the history
…bage.
  • Loading branch information
clarkse committed Sep 17, 2024
1 parent f77df48 commit 1819253
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Src/Base/AMReX_Math.H
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ T comp_ellint_1 (T k)

T a0 = 1.0;
T g0 = std::sqrt(1.0 - k*k);
T a, g;
T a = a0;
T g = g0;

// Find Arithmetic Geometric mean
while(std::abs(a0 - g0) > tol) {
Expand Down

0 comments on commit 1819253

Please sign in to comment.