diff --git a/src/field/DistributedField.cpp b/src/field/DistributedField.cpp index 57979eefc65c0a22bc6322bb578e0b2ada2252b0..43be487eaf4a22797d2757f4d9302f3bcc23bb6c 100644 --- a/src/field/DistributedField.cpp +++ b/src/field/DistributedField.cpp @@ -660,6 +660,13 @@ namespace gmshfem::field // Free the type MPI_Type_free(&mpi_struct_type); + + _sharedDofs.clear(); + _subdomainInterfaceDofs.clear(); + _ownedDofs.clear(); + _toSend.clear(); + _toRead.clear(); + #else throw common::Exception("MPI is not available"); #endif @@ -702,7 +709,6 @@ namespace gmshfem::field this->_ownedDofs = other._ownedDofs; this->_toRead = other._toRead; this->_toSend = other._toSend; - this->_localToGlobal = other._localToGlobal; this->_indexToDof = other._indexToDof; }