Skip to content

Commit

Permalink
Update to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimonis committed Apr 23, 2024
1 parent 461a6fa commit afd51e5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cyprecice/Participant.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
16 changes: 16 additions & 0 deletions cyprecice/cyprecice.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit afd51e5

Please sign in to comment.