Skip to content

Commit

Permalink
Merge pull request #1402 from CEED/jrwrigh/remove_petscceedchk
Browse files Browse the repository at this point in the history
fluids: Remove unused PetscCeedChk
  • Loading branch information
jrwrigh authored Nov 27, 2023
2 parents a547b5d + d9d458c commit 7e43781
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions examples/fluids/navierstokes.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,16 @@
#define DMSetCoordinateDisc(a, b, c) DMProjectCoordinates(a, b)
#endif

#define PetscCeedChk(ceed, ierr) \
#define PetscCallCeed(ceed, ...) \
do { \
int ierr = __VA_ARGS__; \
if (ierr != CEED_ERROR_SUCCESS) { \
const char *error_message; \
CeedGetErrorMessage(ceed, &error_message); \
SETERRQ(PETSC_COMM_SELF, PETSC_ERR_LIB, "%s", error_message); \
} \
} while (0)

#define PetscCallCeed(ceed, ...) \
do { \
int ierr_q_ = __VA_ARGS__; \
PetscCeedChk(ceed, ierr_q_); \
} while (0)

// -----------------------------------------------------------------------------
// Enums
// -----------------------------------------------------------------------------
Expand Down

0 comments on commit 7e43781

Please sign in to comment.