Skip to content

Commit

Permalink
Merge pull request usgs#268 from briochh/hotfix_pcsbnds
Browse files Browse the repository at this point in the history
Fix to pars at bounds calcs.
  • Loading branch information
jtwhite79 authored Aug 25, 2023
2 parents af65584 + bf0a3d0 commit c0a2b78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/pestpp_common/EnsembleMethodUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4508,9 +4508,9 @@ void ParChangeSummarizer:: update(ParameterEnsemble& pe)
for (int i = 0; i < num_reals; i++)
{
v = arr[i];
if (v > (ub[par_name] * 1.01))
if (v > (ub[par_name] - (abs(ub[par_name]) * 0.01)))
num_out_u++;
else if (v < (lb[par_name] * 0.99))
else if (v < (lb[par_name] + (abs(lb[par_name]) * 0.01)))
num_out_l++;
}
value1 = init_moments.first[par_name];
Expand Down

0 comments on commit c0a2b78

Please sign in to comment.