Skip to content

Commit

Permalink
Merge pull request #70 from dlparkhurst/viscosity
Browse files Browse the repository at this point in the history
Extra check to not dump negative user numbers
  • Loading branch information
scharlton2 authored Jul 11, 2024
2 parents 49c6da7 + 8b89a84 commit 39b413a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Phreeqc.h
Original file line number Diff line number Diff line change
Expand Up @@ -1897,7 +1897,8 @@ namespace Utilities
for (it = b.begin(); it != b.end(); ++it)
{
// Adding logic to dump only non-negative entities
if (it->second.Get_n_user() >= 0)
//if (it->second.Get_n_user() >= 0)
if (it->first >= 0 && it->second.Get_n_user() >= 0)
{
it->second.dump_raw(s_oss, indent);
}
Expand Down

0 comments on commit 39b413a

Please # to comment.