Skip to content

Commit

Permalink
Sundials roundoff 2 (#4157)
Browse files Browse the repository at this point in the history
SUNDIALS roundoff fix needs looser tolerances.
  • Loading branch information
ajnonaka committed Sep 17, 2024
1 parent 73716d9 commit acc35e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Base/AMReX_RKIntegrator.H
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public:
{
// Adjust step size to reach output time
// protect against roundoff
if ((time_out-time_current) < dt || almostEqual(time_out-time_current,dt,10)) {
if ((time_out-time_current) < dt || almostEqual(time_out-time_current,dt,1000)) {
dt = time_out - time_current;
stop = true;
}
Expand Down

0 comments on commit acc35e2

Please sign in to comment.