From c77e7c08f70a982e9a8130cd94ca3cb9a494d938 Mon Sep 17 00:00:00 2001 From: Boris Martin <boris.martin@uliege.be> Date: Tue, 22 Apr 2025 10:36:47 +0200 Subject: [PATCH] cleanup for distributed --- src/field/DistributedField.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/field/DistributedField.cpp b/src/field/DistributedField.cpp index 57979eef..43be487e 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; } -- GitLab