dune-common
2.11
Loading...
Searching...
No Matches
dune
common
parallel
parmetis.hh
Go to the documentation of this file.
1
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2
// vi: set et ts=4 sw=2 sts=2:
3
// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
4
// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
5
#ifndef DUNE_PARMETIS_HH
6
#define DUNE_PARMETIS_HH
7
16
17
#if HAVE_PARMETIS
18
19
#if HAVE_MPI
20
#include <mpi.h>
21
#endif
22
23
#if HAVE_PTSCOTCH_PARMETIS
24
extern
"C"
{
25
#include <ptscotch.h>
26
}
27
#endif
28
29
extern
"C"
{
30
#include <parmetis.h>
31
}
32
33
namespace
Dune::ParMetis {
34
35
#if defined(REALTYPEWIDTH)
36
using
real_t
= ::real_t;
37
#else
38
using
real_t
= float;
39
#endif
40
41
#if defined(IDXTYPEWIDTH)
42
using
idx_t = ::idx_t;
43
#elif HAVE_PTSCOTCH_PARMETIS
44
using
idx_t = SCOTCH_Num;
45
#else
46
using
idx_t = int;
47
#endif
48
49
}
// end namespace Dune::ParMetis
50
51
#endif
// HAVE_PARMETIS
52
#endif
// DUNE_PARMETIS_HH
Dune::real_t
typename FieldTraits< Type >::real_type real_t
Convenient access to FieldTraits<Type>::real_type.
Definition
typetraits.hh:301
Generated by
1.15.0