1 // Copyright (c) 2017-2024, Lawrence Livermore National Security, LLC and other CEED contributors. 2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 3 // 4 // SPDX-License-Identifier: BSD-2-Clause 5 // 6 // This file is part of CEED: http://github.com/ceed 7 8 #include <ceed.h> 9 #include <ceed/backend.h> 10 11 const char *const CeedErrorTypesShifted[] = { 12 [CEED_ERROR_SUCCESS - CEED_ERROR_UNSUPPORTED] = "success", 13 [CEED_ERROR_MINOR - CEED_ERROR_UNSUPPORTED] = "generic minor error", 14 [CEED_ERROR_DIMENSION - CEED_ERROR_UNSUPPORTED] = "dimension mismatch", 15 [CEED_ERROR_INCOMPLETE - CEED_ERROR_UNSUPPORTED] = "object setup incomplete", 16 [CEED_ERROR_INCOMPATIBLE - CEED_ERROR_UNSUPPORTED] = "incompatible arguments", 17 [CEED_ERROR_ACCESS - CEED_ERROR_UNSUPPORTED] = "access lock in use", 18 [CEED_ERROR_MAJOR - CEED_ERROR_UNSUPPORTED] = "generic major error", 19 [CEED_ERROR_BACKEND - CEED_ERROR_UNSUPPORTED] = "internal backend error", 20 [CEED_ERROR_UNSUPPORTED - CEED_ERROR_UNSUPPORTED] = "operation unsupported by backend", 21 }; 22 const char *const *CeedErrorTypes = &CeedErrorTypesShifted[-CEED_ERROR_UNSUPPORTED]; 23 24 const char *const CeedMemTypes[] = { 25 [CEED_MEM_HOST] = "host", 26 [CEED_MEM_DEVICE] = "device", 27 }; 28 29 const char *const CeedCopyModes[] = { 30 [CEED_COPY_VALUES] = "copy values", 31 [CEED_USE_POINTER] = "use pointer", 32 [CEED_OWN_POINTER] = "own pointer", 33 }; 34 35 const char *const CeedTransposeModes[] = { 36 [CEED_TRANSPOSE] = "transpose", 37 [CEED_NOTRANSPOSE] = "no transpose", 38 }; 39 40 const char *const CeedEvalModes[] = { 41 [CEED_EVAL_NONE] = "none", [CEED_EVAL_INTERP] = "interpolation", [CEED_EVAL_GRAD] = "gradient", [CEED_EVAL_DIV] = "divergence", 42 [CEED_EVAL_CURL] = "curl", [CEED_EVAL_WEIGHT] = "quadrature weights", 43 }; 44 45 const char *const CeedQuadModes[] = { 46 [CEED_GAUSS] = "Gauss", 47 [CEED_GAUSS_LOBATTO] = "Gauss Lobatto", 48 }; 49 50 const char *const CeedElemTopologies[] = { 51 [CEED_TOPOLOGY_LINE] = "line", [CEED_TOPOLOGY_TRIANGLE] = "triangle", [CEED_TOPOLOGY_QUAD] = "quadrilateral", 52 [CEED_TOPOLOGY_TET] = "tetrahedron", [CEED_TOPOLOGY_PYRAMID] = "pyramid", [CEED_TOPOLOGY_PRISM] = "prism", 53 [CEED_TOPOLOGY_HEX] = "hexahedron", 54 }; 55 56 const char *const CeedContextFieldTypes[] = { 57 [CEED_CONTEXT_FIELD_DOUBLE] = "double", 58 [CEED_CONTEXT_FIELD_INT32] = "int32", 59 [CEED_CONTEXT_FIELD_BOOL] = "bool", 60 }; 61 62 const char *const CeedFESpaces[] = { 63 [CEED_FE_SPACE_H1] = "H^1 space", 64 [CEED_FE_SPACE_HDIV] = "H(div) space", 65 [CEED_FE_SPACE_HCURL] = "H(curl) space", 66 }; 67