Skip to content

Commit

Permalink
tighter tolerances
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahm-LANL committed Jan 3, 2025
1 parent 1d1873f commit ceec265
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions singularity-eos/eos/eos_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -877,8 +877,9 @@ class EosBase {
rhoguess = 0.5 * (rhomin + rhomax);
}
}
auto status = findRoot(PofRT, press, rhoguess, rhomin, rhomax, 10 * robust::EPS(),
10 * robust::EPS(), rho);
// JMM: Demand as much tolerance as we can, but don't reset rho below.
auto status = findRoot(PofRT, press, rhoguess, rhomin, rhomax, robust::EPS(),
robust::EPS(), rho);
// JMM: This needs to not fail and instead return something sane.
// If root find failed to converge, density will at least be
// within bounds.
Expand Down

0 comments on commit ceec265

Please sign in to comment.