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 d8fcc6d commit 1ffedf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hermes_engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,11 @@ DbOperation HermesEngine::generateMetadata(adios2::core::VariableDerived variabl

derivedSemantics derived_semantics;
if(variable.m_Name.find("_min") != std::string::npos) {
std::cout << "MIN generates metadata" << std::endl;
derived_semantics = derivedSemantics(semantics::MIN, generate_derived(rank, currentStep, semantics::MIN));
}
else if(variable.m_Name.find("_max") != std::string::npos) {
std::cout << "MAX generates metadata" << std::endl;
derived_semantics = derivedSemantics(semantics::MAX, generate_derived(rank, currentStep, semantics::MAX));
}
else {
Expand All @@ -479,7 +481,6 @@ void HermesEngine::PutDerived(adios2::core::VariableDerived variable,
Hermes->bkt->Put(name, total_count * sizeof(T), values);

DbOperation db_op = generateMetadata(variable);

client.Mdm_insertRoot(DomainId::GetLocal(), db_op);
}

Expand Down
2 changes: 2 additions & 0 deletions tasks/coeus_mdm/src/coeus_mdm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@ class Server : public TaskLib {
DbOperation db_op = task->GetDbOp();

if (db_op.type == OperationType::InsertData) {
std::cout << "Inserting data" << std::endl;
db->InsertVariableMetadata(db_op.step, db_op.rank, db_op.metadata);
db->InsertBlobLocation(db_op.step, db_op.rank, db_op.name, db_op.blobInfo);
} else if (db_op.type == OperationType::UpdateSteps) {
db->UpdateTotalSteps(db_op.uid, db_op.currentStep);
}
else if (db_op.type == OperationType::InsertDerivedData){
std::cout << "Inserting derived data" << std::endl;
db->InsertVariableMetadata(db_op.step, db_op.rank, db_op.metadata);
db->InsertBlobLocation(db_op.step, db_op.rank, db_op.name, db_op.blobInfo);\
db->insertOrUpdateDerivedQuantity(db_op.step, db_op.name, db_op.derived_semantics.operation,
Expand Down

0 comments on commit 1ffedf6

Please sign in to comment.