Skip to content

Commit

Permalink
Add except to throwing functions
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimonis committed Nov 25, 2024
1 parent 31574d4 commit 311077c
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions cyprecice/Participant.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ cdef extern from "precice/Participant.hpp" namespace "precice":

# steering methods

void initialize ()
void initialize () except +

void advance (double computedTimestepLength)
void advance (double computedTimestepLength) except +

void finalize()

# status queries

int getMeshDimensions(const string& meshName)
int getMeshDimensions(const string& meshName) except +

int getDataDimensions(const string& meshName, const string& dataName)
int getDataDimensions(const string& meshName, const string& dataName) except +

bool isCouplingOngoing()

Expand All @@ -39,51 +39,51 @@ cdef extern from "precice/Participant.hpp" namespace "precice":

# mesh access

bool requiresMeshConnectivityFor (const string& meshName)
bool requiresMeshConnectivityFor (const string& meshName) except +

int setMeshVertex (const string& meshName, vector[double] position)
int setMeshVertex (const string& meshName, vector[double] position) except +

int getMeshVertexSize (const string& meshName)
int getMeshVertexSize (const string& meshName) except +

void setMeshVertices (const string& meshName, vector[double] positions, vector[int]& ids)
void setMeshVertices (const string& meshName, vector[double] positions, vector[int]& ids) except +

void setMeshEdge (const string& meshName, int firstVertexID, int secondVertexID)
void setMeshEdge (const string& meshName, int firstVertexID, int secondVertexID) except +

void setMeshEdges (const string& meshName, vector[int] vertices)
void setMeshEdges (const string& meshName, vector[int] vertices) except +

void setMeshTriangle (const string& meshName, int firstVertexID, int secondVertexID, int thirdVertexID)
void setMeshTriangle (const string& meshName, int firstVertexID, int secondVertexID, int thirdVertexID) except +

void setMeshTriangles (const string& meshName, vector[int] vertices)
void setMeshTriangles (const string& meshName, vector[int] vertices) except +

void setMeshQuad (const string& meshName, int firstVertexID, int secondVertexID, int thirdVertexID, int fourthVertexID)
void setMeshQuad (const string& meshName, int firstVertexID, int secondVertexID, int thirdVertexID, int fourthVertexID) except +

void setMeshQuads (const string& meshName, vector[int] vertices)
void setMeshQuads (const string& meshName, vector[int] vertices) except +

void setMeshTetrahedron (const string& meshName, int firstVertexID, int secondVertexID, int thirdVertexID, int fourthVertexID)
void setMeshTetrahedron (const string& meshName, int firstVertexID, int secondVertexID, int thirdVertexID, int fourthVertexID) except +

void setMeshTetrahedra (const string& meshName, vector[int] vertices)
void setMeshTetrahedra (const string& meshName, vector[int] vertices) except +

# remeshing

void resetMesh (const string& meshName)
void resetMesh (const string& meshName) except +

# data access

void writeData (const string& meshName, const string& dataName, vector[int] vertices, vector[double] values)
void writeData (const string& meshName, const string& dataName, vector[int] vertices, vector[double] values) except +

void readData (const string& meshName, const string& dataName, vector[int] vertices, const double relativeReadTime, vector[double]& values)
void readData (const string& meshName, const string& dataName, vector[int] vertices, const double relativeReadTime, vector[double]& values) except +

# direct access

void setMeshAccessRegion (const string& meshName, vector[double] boundingBox)
void setMeshAccessRegion (const string& meshName, vector[double] boundingBox) except +

void getMeshVertexIDsAndCoordinates (const string& meshName, vector[int]& ids, vector[double]& coordinates)
void getMeshVertexIDsAndCoordinates (const string& meshName, vector[int]& ids, vector[double]& coordinates) except +

# Gradient related API

bool requiresGradientDataFor(const string& meshName, const string& dataName)
bool requiresGradientDataFor(const string& meshName, const string& dataName) except +

void writeGradientData(const string& meshName, const string& dataName, vector[int] vertices, vector[double] gradientValues)
void writeGradientData(const string& meshName, const string& dataName, vector[int] vertices, vector[double] gradientValues) except +


cdef extern from "precice/Tooling.hpp" namespace "precice":
Expand Down

0 comments on commit 311077c

Please sign in to comment.