Skip to content

Commit

Permalink
Merge pull request #3024 from boutproject/fix-petsc-mpi-clash
Browse files Browse the repository at this point in the history
Ensure PETSc headers are included after `bout/petsclib.hxx`
  • Loading branch information
dschwoerer authored Nov 8, 2024
2 parents bb5f194 + 9347754 commit 088c92f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/bout/petsc_interface.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
#include <algorithm>
#include <iterator>
#include <memory>
#include <petscsystypes.h>
#include <petscvec.h>
#include <type_traits>
#include <vector>

Expand All @@ -52,6 +50,9 @@
#include <bout/region.hxx>
#include <bout/traits.hxx>

#include <petscsystypes.h>
#include <petscvec.h>

/*!
* A class which wraps PETSc vector objects, allowing them to be
* indexed using the BOUT++ scheme. Note that boundaries are only
Expand Down

0 comments on commit 088c92f

Please sign in to comment.