//
-// Copyright (C) 2007-2020 CEA/DEN, EDF R&D
+// Copyright (C) 2007-2024 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
}
ParaMESH::~ParaMESH()
+ {
+ release();
+ }
+
+ /** Destructor involves MPI operations: make sure this is accessible from a proper
+ * method for Python wrapping.
+ */
+ void ParaMESH::release()
{
delete _block_topology;
delete _explicit_topology;
+ _block_topology = nullptr;
+ _explicit_topology = nullptr;
}
}