Skip to content

Commit

Permalink
Merge pull request #10 from minrk/petsc-3.15
Browse files Browse the repository at this point in the history
petsc 3.15 merged VecScatter into PetscSF
  • Loading branch information
cekees authored Jun 21, 2022
2 parents 1594233 + 33ec0da commit 2fd5c28
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion DaetkPetscVec.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,17 @@ namespace PetscVecOperators
Daetk::real min(const Daetk::Petsc::Vec& v);
}

namespace Daetk
#include "petscversion.h"
// petsc 3.15 merged VecScatter into PetscSF. Private variables were removed.
#if (\
(PETSC_VERSION_MAJOR > 3) \
|| \
(PETSC_VERSION_MAJOR == 3 && PETSC_VERSION_MINOR >= 15) \
)
#define _p_VecScatter _p_PetscSF
#endif

namespace Daetk
{
namespace Petsc
{
Expand Down

0 comments on commit 2fd5c28

Please sign in to comment.