BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
graph_typedefs.hpp
Go to the documentation of this file.
1/*
2 * BELFEM -- The Berkeley Lab Finite Element Framework
3 * Copyright (c) 2026, The Regents of the University of California, through
4 * Lawrence Berkeley National Laboratory (subject to receipt of any required
5 * approvals from the U.S. Dept. of Energy). All rights reserved.
6 *
7 * Developers: Christian Messe, Gregory Giard
8 *
9 * See the top-level LICENSE file for the complete license and disclaimer.
10 */
11
12#ifndef BELFEM_GRAPH_TYPEDEFS_HPP
13#define BELFEM_GRAPH_TYPEDEFS_HPP
14
15
16// compiler settings
17#ifdef BELFEM_GCC
18#ifndef __GNUC__
19#define __GNUC__
20#endif
21#elif BELFEM_INTEL
22#ifndef __ICC
23#define __ICC
24#endif
25#endif
26
27#ifdef BELFEM_METIS
28#include <metis.h>
29#endif
30
31
32#ifdef BELFEM_PARMETIS
33#include <parmetis.h>
34#endif
35
36#ifdef BELFEM_SCOTCH
37#include <iostream>
38#include <cstdint>
39#include <scotch.h>
40#endif
41
42// bugfix to avoid error with BLAZE
43#ifdef BELFEM_BLAZE
44#undef abs
45#undef iabs
46#endif
47
48namespace belfem
49{
50#ifdef BELFEM_METIS
51 typedef ::idx_t metis_t;
52#else
53 typedef int metis_t;
54#endif
55#ifdef BELFEM_SCOTCH
56 typedef SCOTCH_Num scotch_t;
57#else
58 typedef int scotch_t;
59#endif
60}
61#endif //BELFEM_GRAPH_TYPEDEFS_HPP
USER GUIDES:
Definition cl_Capacitor.cpp:16
int scotch_t
Definition graph_typedefs.hpp:58
int metis_t
Definition graph_typedefs.hpp:53