diff --git a/src/libs/pestpp_common/EnsembleMethodUtils.cpp b/src/libs/pestpp_common/EnsembleMethodUtils.cpp index 790f69b1..9aa44d4d 100644 --- a/src/libs/pestpp_common/EnsembleMethodUtils.cpp +++ b/src/libs/pestpp_common/EnsembleMethodUtils.cpp @@ -5676,7 +5676,8 @@ void EnsembleMethod::initialize(int cycle, bool run, bool use_existing) //check to see if any explicit obs noise options are set bool reset_to_nonoise = true; - if (ppo->get_passed_args().find("IES_NO_NOISE") != ppo->get_passed_args().end()) + set passed = ppo->get_passed_args(); + if (passed.find("IES_NO_NOISE") != passed.end()) { reset_to_nonoise = false; }