Go to the documentation of this file.
18 #ifndef viskores_exec_ErrorCode_h
19 #define viskores_exec_ErrorCode_h
21 #include <lcl/ErrorCode.h>
146 return "Invalid shape id";
148 return "Invalid number of points";
150 return "Invalid cell metric";
152 return "Wrong shape id for tag type";
154 return "Invalid point id";
156 return "Invalid edge id";
158 return "Invalid face id";
160 return "Solution did not converge";
162 return "Matrix factorization failed";
164 return "Degenerate cell detected";
166 return "Malformed cell detected";
168 return "Operation on empty cell";
170 return "Cell not found";
172 return "Unknown error";
175 return "Invalid error";
185 case lcl::ErrorCode::SUCCESS:
187 case lcl::ErrorCode::INVALID_SHAPE_ID:
189 case lcl::ErrorCode::INVALID_NUMBER_OF_POINTS:
191 case lcl::ErrorCode::WRONG_SHAPE_ID_FOR_TAG_TYPE:
193 case lcl::ErrorCode::INVALID_POINT_ID:
195 case lcl::ErrorCode::SOLUTION_DID_NOT_CONVERGE:
197 case lcl::ErrorCode::MATRIX_LUP_FACTORIZATION_FAILED:
199 case lcl::ErrorCode::DEGENERATE_CELL_DETECTED:
210 #define VISKORES_RETURN_ON_ERROR(call) \
213 auto status = (call); \
214 if (status != ::viskores::ErrorCode::Success) \
220 #endif //viskores_exec_ErrorCode_h
@ InvalidFaceId
A bad face identifier was detected while operating on a cell.
@ MalformedCellDetected
An operation detected on a malformed cell.
@ InvalidCellMetric
A cell metric was requested for a cell that does not support that metric.
ErrorCode
Identifies whether an operation was successful or what type of error it had.
Definition: ErrorCode.h:36
@ InvalidEdgeId
A bad edge identifier was detected while operating on a cell.
@ InvalidNumberOfPoints
The wrong number of points was provided for a given cell type.
@ InvalidPointId
A bad point identifier was detected while operating on a cell.
#define VISKORES_EXEC_CONT
Definition: ExportMacros.h:60
@ InvalidShapeId
A unknown shape identifier was encountered.
@ MatrixFactorizationFailed
A solution was not found for a linear system.
const char * ErrorString(viskores::ErrorCode code) noexcept
Convert a viskores::ErrorCode into a human-readable string.
Definition: ErrorCode.h:139
Groups connected points that have the same field value.
Definition: Atomic.h:27
@ DegenerateCellDetected
An operation detected a degenerate cell.
@ OperationOnEmptyCell
An operation was attempted on a cell with an empty shape.
@ SolutionDidNotConverge
An iterative operation did not find an appropriate solution.
@ CellNotFound
A cell matching some given criteria could not be found.
@ Success
A successful operation.