Skip to content

Commit

Permalink
Merge pull request #1547 from CEED/jeremy/min-petsc
Browse files Browse the repository at this point in the history
Min PETSc version 3.21
  • Loading branch information
jeremylt authored Apr 2, 2024
2 parents 749901d + c2cc34e commit 53d23b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
3 changes: 0 additions & 3 deletions examples/petsc/include/petscutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
#include <petsc.h>

#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);
Expand Down
4 changes: 2 additions & 2 deletions examples/petsc/include/petscversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 1 addition & 5 deletions examples/solids/elasticity.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 53d23b9

Please sign in to comment.