Skip to content

Commit

Permalink
... close the engines
Browse files Browse the repository at this point in the history
  • Loading branch information
cwsmith committed Jul 5, 2022
1 parent 8f854f8 commit 7274032
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setupComms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ void setupBp4(std::string_view name, adios2::Params params, bool isServer) {
assert(readerStatus == adios2::StepStatus::OK);
readerEngine.EndStep();
std::cerr << "done reader step\n";

writerEngine.Close();
readerEngine.Close();
}

void setupSst(std::string_view name, adios2::Params params, bool isServer) {
Expand Down Expand Up @@ -75,6 +78,9 @@ void setupSst(std::string_view name, adios2::Params params, bool isServer) {
assert(c2sStatus == adios2::StepStatus::OK);
c2sEngine.EndStep();
std::cerr << "done c2s step\n";

s2cEngine.Close();
c2sEngine.Close();
}

int main(int argc, char** argv) {
Expand Down

0 comments on commit 7274032

Please sign in to comment.