Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jtwhite79 committed Dec 12, 2024
1 parent b0aaafb commit 3d2b992
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libs/pestpp_common/EnsembleSmoother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,16 @@ void IterEnsembleSmoother::iterate_2_solution()
consec_bad_lambda_cycles++;

//if ((n_iter_mean > 0) && (solution_iter % n_iter_mean == 0))
iters_since_reinflate++;
if ((current_n_iter_mean > 0) && (iters_since_reinflate >= current_n_iter_mean))
{
iter++;
reset_par_ensemble_to_prior_mean();
iters_since_reinflate = 0;
n_iter_mean_idx++;
if (n_iter_mean.size() > n_iter_mean_idx)
{
n_iter_mean_idx++;

current_n_iter_mean = n_iter_mean[n_iter_mean_idx];
}
}
Expand Down

0 comments on commit 3d2b992

Please sign in to comment.