diff --git a/examples/petsc/include/petscutils.h b/examples/petsc/include/petscutils.h index 28d9ffdbc2..b1b07f7672 100644 --- a/examples/petsc/include/petscutils.h +++ b/examples/petsc/include/petscutils.h @@ -13,9 +13,6 @@ #include #include "structs.h" -#if PETSC_VERSION_LT(3, 21, 0) -#define DMSetCoordinateDisc(a, b, c) DMProjectCoordinates(a, b) -#endif CeedMemType MemTypeP2C(PetscMemType mtype); PetscErrorCode VecP2C(Vec X_petsc, PetscMemType *mem_type, CeedVector x_ceed); diff --git a/examples/petsc/include/petscversion.h b/examples/petsc/include/petscversion.h index c74e2f2d4b..8c1d3f92be 100644 --- a/examples/petsc/include/petscversion.h +++ b/examples/petsc/include/petscversion.h @@ -9,6 +9,6 @@ /// Petsc version check #pragma once -#if PETSC_VERSION_LT(3, 20, 0) -#error "PETSc v3.20 or later is required" +#if PETSC_VERSION_LT(3, 21, 0) +#error "PETSc v3.21 or later is required" #endif diff --git a/examples/solids/elasticity.h b/examples/solids/elasticity.h index 74442e0ac9..7ac246eccc 100644 --- a/examples/solids/elasticity.h +++ b/examples/solids/elasticity.h @@ -21,10 +21,6 @@ #include "include/utils.h" #include "problems/problems.h" -#if PETSC_VERSION_LT(3, 20, 0) -#error "PETSc v3.20 or later is required" -#endif - #if PETSC_VERSION_LT(3, 21, 0) -#define DMSetCoordinateDisc(a, b, c) DMProjectCoordinates(a, b) +#error "PETSc v3.21 or later is required" #endif