Go to the documentation of this file.
10 #ifndef vtk_m_exec_ErrorCode_h
11 #define vtk_m_exec_ErrorCode_h
13 #include <lcl/ErrorCode.h>
138 return "Invalid shape id";
140 return "Invalid number of points";
142 return "Invalid cell metric";
144 return "Wrong shape id for tag type";
146 return "Invalid point id";
148 return "Invalid edge id";
150 return "Invalid face id";
152 return "Solution did not converge";
154 return "Matrix factorization failed";
156 return "Degenerate cell detected";
158 return "Malformed cell detected";
160 return "Operation on empty cell";
162 return "Cell not found";
164 return "Unknown error";
167 return "Invalid error";
177 case lcl::ErrorCode::SUCCESS:
179 case lcl::ErrorCode::INVALID_SHAPE_ID:
181 case lcl::ErrorCode::INVALID_NUMBER_OF_POINTS:
183 case lcl::ErrorCode::WRONG_SHAPE_ID_FOR_TAG_TYPE:
185 case lcl::ErrorCode::INVALID_POINT_ID:
187 case lcl::ErrorCode::SOLUTION_DID_NOT_CONVERGE:
189 case lcl::ErrorCode::MATRIX_LUP_FACTORIZATION_FAILED:
191 case lcl::ErrorCode::DEGENERATE_CELL_DETECTED:
202 #define VTKM_RETURN_ON_ERROR(call) \
205 auto status = (call); \
206 if (status != ::vtkm::ErrorCode::Success) \
212 #endif //vtk_m_exec_ErrorCode_h
ErrorCode
Identifies whether an operation was successful or what type of error it had.
Definition: ErrorCode.h:28
Groups connected points that have the same field value.
Definition: Atomic.h:19
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
@ DegenerateCellDetected
An operation detected a degenerate cell.
@ Success
A successful operation.
@ MatrixFactorizationFailed
A solution was not found for a linear system.
@ MalformedCellDetected
An operation detected on a malformed cell.
@ InvalidEdgeId
A bad edge identifier was detected while operating on a cell.
@ InvalidFaceId
A bad face identifier was detected while operating on a cell.
@ InvalidCellMetric
A cell metric was requested for a cell that does not support that metric.
@ InvalidPointId
A bad point identifier was detected while operating on a cell.
@ CellNotFound
A cell matching some given criteria could not be found.
@ OperationOnEmptyCell
An operation was attempted on a cell with an empty shape.
@ SolutionDidNotConverge
An iterative operation did not find an appropriate solution.
const char * ErrorString(vtkm::ErrorCode code) noexcept
Convert a vtkm::ErrorCode into a human-readable string.
Definition: ErrorCode.h:131
@ InvalidNumberOfPoints
The wrong number of points was provided for a given cell type.
@ InvalidShapeId
A unknown shape identifier was encountered.