DUNE
Distributed and Unified Numerics Environment
DUNE PDELab (git)
dune
common
parallel
parmetis.hh
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
15
#if HAVE_PARMETIS
16
17
#if HAVE_MPI
18
#include <mpi.h>
19
#endif
20
21
#if HAVE_PTSCOTCH_PARMETIS
22
extern
"C"
{
23
#include <ptscotch.h>
24
}
25
#endif
26
27
extern
"C"
{
28
#include <parmetis.h>
29
}
30
31
namespace
Dune::ParMetis {
32
33
#if defined(REALTYPEWIDTH)
34
using
real_t
=
::real_t
;
35
#else
36
using
real_t
= float;
37
#endif
38
39
#if defined(IDXTYPEWIDTH)
40
using
idx_t = ::idx_t;
41
#elif HAVE_PTSCOTCH_PARMETIS
42
using
idx_t = SCOTCH_Num;
43
#else
44
using
idx_t = int;
45
#endif
46
47
}
// end namespace Dune::ParMetis
48
49
#endif
// HAVE_PARMETIS
50
#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
|
Legal Statements / Impressum
| Hosted by
TU Dresden
| generated with Hugo v0.111.3 (Nov 23, 23:29, 2024)