Commit f0a83f32 authored by oliver.sander_at_tu-dresden.de's avatar oliver.sander_at_tu-dresden.de
Browse files

Disable ParMetis support in the examples

ParMetis does something weird with the mpi.h header and C linkage.
This leads to "conflicting declaration" errors for MPI methods.
As we are not using ParMetis anyway let's just disable it.

Yes, this is not particularly pretty, but the problem will go away
once we port away from dune-pdelab, which we plan on doing anyway.
parent d839b937
Pipeline #33263 passed with stage
in 25 minutes and 31 seconds
#include <config.h>
// Forcefully disable ParMetis
// dune-pdelab includes ParMetis headers which do weird things with MPI.
// As we are not using ParMetis anyway let's just disable it.
// The problem will disappear once we have the code ported away from dune-pdelab.
#define HAVE_PARMETIS 0
#include <array>
#include <dune/common/parallel/mpihelper.hh>
......
#include <config.h>
// Forcefully disable ParMetis
// dune-pdelab includes ParMetis headers which do weird things with MPI.
// As we are not using ParMetis anyway let's just disable it.
// The problem will disappear once we have the code ported away from dune-pdelab.
#define HAVE_PARMETIS 0
#include <dune/common/parallel/mpihelper.hh>
#include <dune/grid/yaspgrid.hh>
......
#include <config.h>
// Forcefully disable ParMetis
// dune-pdelab includes ParMetis headers which do weird things with MPI.
// As we are not using ParMetis anyway let's just disable it.
// The problem will disappear once we have the code ported away from dune-pdelab.
#define HAVE_PARMETIS 0
#include <dune/common/parallel/mpihelper.hh>
#include <dune/grid/yaspgrid.hh>
......
#include <config.h>
// Forcefully disable ParMetis
// dune-pdelab includes ParMetis headers which do weird things with MPI.
// As we are not using ParMetis anyway let's just disable it.
// The problem will disappear once we have the code ported away from dune-pdelab.
#define HAVE_PARMETIS 0
#include <array>
#include <dune/common/parallel/mpihelper.hh>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment