From 2b1abd0f432c433f840174afd7e1e70209d16848 Mon Sep 17 00:00:00 2001 From: Christian Engwer <christi@dune-project.org> Date: Thu, 27 Mar 2014 11:57:27 +0100 Subject: [PATCH] [repartition] fix problems when using libscotchparmetis --- dune/istl/repartition.hh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dune/istl/repartition.hh b/dune/istl/repartition.hh index 816bf91a7..c3cbb7df0 100644 --- a/dune/istl/repartition.hh +++ b/dune/istl/repartition.hh @@ -10,6 +10,9 @@ #if HAVE_PARMETIS #include <parmetis.h> #endif +#if HAVE_METIS +#include <metis.h> +#endif #include <dune/common/timer.hh> #include <dune/common/unused.hh> @@ -752,7 +755,7 @@ namespace Dune Dune::OwnerOverlapCopyCommunication<T1,T2>*& outcomm, RedistributeInterface& redistInf, bool verbose=false); -#if HAVE_PARMETIS +#if HAVE_PARMETIS && HAVE_METIS extern "C" { // backwards compatibility to parmetis < 4.0.0 #if PARMETIS_MAJOR_VERSION > 3 -- GitLab