Loading...
Searching...
No Matches
metis.hh
Go to the documentation of this file.
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
#ifndef DUNE_METIS_HH
#define DUNE_METIS_HH
#if HAVE_METIS
#if HAVE_SCOTCH_METIS
extern "C" {
#include <scotch.h>
}
#endif
extern "C" {
#include <metis.h>
}
#if HAVE_SCOTCH_METIS && !defined(SCOTCH_METIS_RETURN) && !defined(METIS_OK)
// NOTE: scotchmetis does not define a return type for METIS functions
#define METIS_OK 1
#endif
namespace Dune::Metis {
#if defined(REALTYPEWIDTH) || defined(SCOTCH_METIS_DATATYPES)
using real_t = ::real_t;
#else
using real_t = double;
#endif
#if defined(IDXTYPEWIDTH) || defined(SCOTCH_METIS_DATATYPES)
using idx_t = ::idx_t;
#elif HAVE_SCOTCH_METIS
using idx_t = SCOTCH_Num;
#else
using idx_t = int;
#endif
} // end namespace Dune::Metis
#endif // HAVE_METIS
#endif // DUNE_METIS_HH
Dune::real_t
typename FieldTraits< Type >::real_type real_t
Convenient access to FieldTraits<Type>::real_type.
Definition typetraits.hh:301