Commit 9fe002fe authored by Robert K's avatar Robert K Committed by Steffen Müthing

[bugfix] Use correct integral type in the graph classes.

Parmetis has the option of using non-standard integral types
for the indices. In this case compilation failed. This is
fixed by using the type even for the graph representation
fed to metis/parmetis.

(cherry picked from commit 0ca78d5f)
Signed-off-by: Steffen Müthing's avatarSteffen Müthing <muething@dune-project.org>
parent b1882eb1
......@@ -648,6 +648,15 @@ namespace Dune
return F::contains(pindex->local().attribute());
}
#if HAVE_PARMETIS
#if PARMETIS_MAJOR_VERSION > 3
typedef idx_t idxtype;
#elif defined(METISNAMEL)
typedef int idxtype;
#else
//typedef std::size_t idxtype;
typedef int idxtype;
#endif
class BaseEdgeFunctor
{
......@@ -772,7 +781,6 @@ namespace Dune
Dune::OwnerOverlapCopyCommunication<T1,T2>*& outcomm,
RedistributeInterface& redistInf,
bool verbose=false);
#if HAVE_PARMETIS
#ifndef METIS_VER_MAJOR
extern "C"
{
......
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