diff --git a/src/field/DistributedField.cpp b/src/field/DistributedField.cpp index 015167131f6cb2b0819fd532a33957f441bf490e..93210c793e293bd82ba09b224438e0de3fbea422 100644 --- a/src/field/DistributedField.cpp +++ b/src/field/DistributedField.cpp @@ -305,7 +305,6 @@ namespace gmshfem::field global.data(), sizes.data(), displs.data(), mpi_struct_type, MPI_COMM_WORLD); - // Free the type _toSend.clear(); // Global is the list of dof indices someone is reading @@ -321,6 +320,8 @@ namespace gmshfem::field } } + + // Free the type MPI_Type_free(&mpi_struct_type); #else