diff --git a/examples/fluids/navierstokes.h b/examples/fluids/navierstokes.h index 983a637f4d..4608f4baea 100644 --- a/examples/fluids/navierstokes.h +++ b/examples/fluids/navierstokes.h @@ -24,8 +24,9 @@ #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); \ @@ -33,12 +34,6 @@ } \ } while (0) -#define PetscCallCeed(ceed, ...) \ - do { \ - int ierr_q_ = __VA_ARGS__; \ - PetscCeedChk(ceed, ierr_q_); \ - } while (0) - // ----------------------------------------------------------------------------- // Enums // -----------------------------------------------------------------------------