From d8fcc6dfd322d8fcffaa744682f6be1c0204fe74 Mon Sep 17 00:00:00 2001 From: jaime Date: Sat, 4 Nov 2023 04:04:20 -0500 Subject: [PATCH] find returns and iterator we need to compare if it is no position --- src/hermes_engine.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hermes_engine.cc b/src/hermes_engine.cc index ffb37d1e..fcb067c8 100644 --- a/src/hermes_engine.cc +++ b/src/hermes_engine.cc @@ -453,10 +453,10 @@ DbOperation HermesEngine::generateMetadata(adios2::core::VariableDerived variabl BlobInfo blobInfo(Hermes->bkt->name, variable.m_Name); derivedSemantics derived_semantics; - if(variable.m_Name.find("_min")) { + if(variable.m_Name.find("_min") != std::string::npos) { derived_semantics = derivedSemantics(semantics::MIN, generate_derived(rank, currentStep, semantics::MIN)); } - else if(variable.m_Name.find("_max")) { + else if(variable.m_Name.find("_max") != std::string::npos) { derived_semantics = derivedSemantics(semantics::MAX, generate_derived(rank, currentStep, semantics::MAX)); } else {