Skip to content

Commit

Permalink
put default rho gues close to STP
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahm-LANL committed Dec 25, 2024
1 parent 1034b38 commit d6e80ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion singularity-eos/eos/eos_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ class EosBase {
Real rhomax = MAXFAC * rhomin;
Real rhoguess = rho; // use input density
if ((rhoguess < rhomin) || (rhoguess > rhomax)) {
if ((rhomin < DEFAULT_RHO_GUESS) && (rhomax > DEFAULT_RHOG_UESS)) {
if ((rhomin < DEFAULT_RHO_GUESS) && (rhomax > DEFAULT_RHO_GUESS)) {
rhoguess = DEFAULT_RHO_GUESS;
} else {
rhoguess = 0.5 * (rhomin + rhomax);
Expand Down

0 comments on commit d6e80ee

Please sign in to comment.