1 #if !defined(PETSCDMCEED_H) 2 #define PETSCDMCEED_H 3 4 #include <petscdm.h> 5 6 #if defined(PETSC_HAVE_LIBCEED) 7 #include <ceed.h> 8 9 #define CHKERRQ_CEED(ierr) \ 10 do { \ 11 PetscErrorCode ierr_ = (ierr); \ 12 if (ierr_ != CEED_ERROR_SUCCESS) \ 13 SETERRQ1(PETSC_COMM_SELF, PETSC_ERR_LIB, "libCEED error: %s", \ 14 CeedErrorTypes[ierr_]); \ 15 } while (0) 16 17 PETSC_EXTERN PetscErrorCode DMGetCeed(DM, Ceed *); 18 19 #endif 20 21 #endif 22