Skip to content

Commit

Permalink
petsc 3.15 merged VecScatter into PetscSF. Private variables were rem…
Browse files Browse the repository at this point in the history
…oved.

not sure if there's a better way to get at this without private APIs
  • Loading branch information
minrk committed May 19, 2022
1 parent 66b2a69 commit 33ec0da
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 33ec0da

Please sign in to comment.