1 // Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at 2 // the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights 3 // reserved. See files LICENSE and NOTICE for details. 4 // 5 // This file is part of CEED, a collection of benchmarks, miniapps, software 6 // libraries and APIs for efficient high-order finite element and spectral 7 // element discretizations for exascale applications. For more information and 8 // source code availability see http://github.com/ceed. 9 // 10 // The CEED research is supported by the Exascale Computing Project 17-SC-20-SC, 11 // a collaborative effort of two U.S. Department of Energy organizations (Office 12 // of Science and the National Nuclear Security Administration) responsible for 13 // the planning and preparation of a capable exascale ecosystem, including 14 // software, applications, hardware, advanced system engineering and early 15 // testbed platforms, in support of the nation's exascale computing imperative. 16 17 #include <ceed/ceed.h> 18 19 const char *const CeedErrorTypesShifted[] = { 20 [CEED_ERROR_SUCCESS - CEED_ERROR_UNSUPPORTED] = "success", 21 [CEED_ERROR_MINOR - CEED_ERROR_UNSUPPORTED] = "generic minor error", 22 [CEED_ERROR_DIMENSION - CEED_ERROR_UNSUPPORTED] = "dimension mismatch", 23 [CEED_ERROR_INCOMPLETE - CEED_ERROR_UNSUPPORTED] = "object setup incomplete", 24 [CEED_ERROR_INCOMPATIBLE - CEED_ERROR_UNSUPPORTED] = "incompatible arguments", 25 [CEED_ERROR_ACCESS - CEED_ERROR_UNSUPPORTED] = "access lock in use", 26 [CEED_ERROR_MAJOR - CEED_ERROR_UNSUPPORTED] = "generic major error", 27 [CEED_ERROR_BACKEND - CEED_ERROR_UNSUPPORTED] = "internal backend error", 28 [CEED_ERROR_UNSUPPORTED - CEED_ERROR_UNSUPPORTED] = "operation unsupported by backend", 29 }; 30 const char *const *CeedErrorTypes = &CeedErrorTypesShifted[- 31 CEED_ERROR_UNSUPPORTED]; 32 33 const char *const CeedMemTypes[] = { 34 [CEED_MEM_HOST] = "host", 35 [CEED_MEM_DEVICE] = "device", 36 }; 37 38 const char *const CeedCopyModes[] = { 39 [CEED_COPY_VALUES] = "copy values", 40 [CEED_USE_POINTER] = "use pointer", 41 [CEED_OWN_POINTER] = "own pointer", 42 }; 43 44 const char *const CeedTransposeModes[] = { 45 [CEED_TRANSPOSE] = "transpose", 46 [CEED_NOTRANSPOSE] = "no transpose", 47 }; 48 49 const char *const CeedEvalModes[] = { 50 [CEED_EVAL_NONE] = "none", 51 [CEED_EVAL_INTERP] = "interpolation", 52 [CEED_EVAL_GRAD] = "gradient", 53 [CEED_EVAL_DIV] = "divergence", 54 [CEED_EVAL_CURL] = "curl", 55 [CEED_EVAL_WEIGHT] = "quadrature weights", 56 }; 57 58 const char *const CeedQuadModes[] = { 59 [CEED_GAUSS] = "Gauss", 60 [CEED_GAUSS_LOBATTO] = "Gauss Lobatto", 61 }; 62 63 const char *const CeedElemTopologies[] = { 64 [CEED_TOPOLOGY_LINE] = "line", 65 [CEED_TOPOLOGY_TRIANGLE] = "triangle", 66 [CEED_TOPOLOGY_QUAD] = "quadrilateral", 67 [CEED_TOPOLOGY_TET] = "tetrahedron", 68 [CEED_TOPOLOGY_PYRAMID] = "pyramid", 69 [CEED_TOPOLOGY_PRISM] = "prism", 70 [CEED_TOPOLOGY_HEX] = "hexahedron", 71 }; 72 73 const char *const CeedContextFieldTypes[] = { 74 [CEED_CONTEXT_FIELD_DOUBLE] = "double", 75 [CEED_CONTEXT_FIELD_INT32] = "int32", 76 }; 77 78 const char *const CeedFESpaces[] = { 79 [CEED_FE_SPACE_H1] = "H^1 space", 80 [CEED_FE_SPACE_HDIV] = "H(div) space", 81 }; 82