From 5c11b5b3005e4e819c38294458c7328b8f1100b0 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 2 May 2024 08:34:03 -0600 Subject: [PATCH] fix for msvc --- src/libs/pestpp_common/EnsembleMethodUtils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }