Skip to content

Commit

Permalink
find returns and iterator we need to compare if it is no position
Browse files Browse the repository at this point in the history
  • Loading branch information
JaimeCernuda committed Nov 4, 2023
1 parent 8a2d582 commit d8fcc6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hermes_engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d8fcc6d

Please sign in to comment.