diff --git a/cyprecice/Participant.pxd b/cyprecice/Participant.pxd index ffe9783b..01614ce0 100644 --- a/cyprecice/Participant.pxd +++ b/cyprecice/Participant.pxd @@ -65,6 +65,10 @@ cdef extern from "precice/Participant.hpp" namespace "precice": void setMeshTetrahedra (const string& meshName, vector[int] vertices) + # remeshing + + void resetMesh (const string& meshName) + # data access void writeData (const string& meshName, const string& dataName, vector[int] vertices, vector[double] values) diff --git a/cyprecice/cyprecice.pyx b/cyprecice/cyprecice.pyx index a2897186..5a9a954b 100644 --- a/cyprecice/cyprecice.pyx +++ b/cyprecice/cyprecice.pyx @@ -710,6 +710,22 @@ cdef class Participant: self.thisptr.setMeshTetrahedra (convert(mesh_name), cpp_vertices) + # remeshing + + + def reset_mesh (self, mesh_name): + """ + Resets a mesh + + Parameters + ---------- + mesh_name : str + Name of the mesh to reset. + + """ + + self.thisptr.resetMesh (convert(mesh_name)) + # data access def write_data (self, mesh_name, data_name, vertex_ids, values):