Dune Core Modules (unstable)

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
17#if HAVE_PARMETIS
18
19#if HAVE_MPI
20#include <mpi.h>
21#endif
22
23#if HAVE_PTSCOTCH_PARMETIS
24extern "C" {
25 #include <ptscotch.h>
26}
27#endif
28
29extern "C" {
30 #include <parmetis.h>
31}
32#endif // HAVE_PARMETIS
33
34namespace Dune::ParMetis {
35
36#if HAVE_PARMETIS && defined(REALTYPEWIDTH)
37 using real_t = ::real_t;
38#else
39 using real_t = float;
40#endif
41
42#if HAVE_PARMETIS && defined(IDXTYPEWIDTH)
43 using idx_t = ::idx_t;
44#elif HAVE_PARMETIS && HAVE_PTSCOTCH_PARMETIS
45 using idx_t = SCOTCH_Num;
46#else
47 using idx_t = int;
48#endif
49
50} // end namespace Dune::ParMetis
51
52#endif // DUNE_PARMETIS_HH
typename FieldTraits< Type >::real_type real_t
Convenient access to FieldTraits<Type>::real_type.
Definition: typetraits.hh:301
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden & Uni Heidelberg  |  generated with Hugo v0.111.3 (Apr 2, 22:34, 2026)