must free MPI communicators created by MPI_Comm_split()

This commit is contained in:
Axel Kohlmeyer 2021-02-08 10:40:20 -05:00
parent 92605393f7
commit c810cda64c
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,7 @@ TEST(lammps_open, with_args)
output = ::testing::internal::GetCapturedStdout();
EXPECT_THAT(output, HasSubstr("Total wall time:"));
if (verbose) std::cout << output;
MPI_Comm_free(&mycomm);
}
TEST(lammps_open, with_kokkos)
@ -195,4 +196,5 @@ TEST(lammps_open_fortran, no_args)
output = ::testing::internal::GetCapturedStdout();
EXPECT_THAT(output, HasSubstr("Total wall time:"));
if (verbose) std::cout << output;
MPI_Comm_free(&mycomm);
}