DNDSR
0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
Loading...
Searching...
No Matches
Metis.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Geometric.hpp
"
4
#include <metis.h>
5
#include <parmetis.h>
6
7
namespace
_METIS
8
{
9
}
10
11
namespace
_METIS
12
{
13
static
idx_t indexToIdx(
DNDS::index
v
)
14
{
15
if
constexpr
(
sizeof
(
DNDS::index
) <=
sizeof
(idx_t))
16
return
v
;
17
else
18
return
DNDS::checkedIndexTo32
(
v
);
19
}
20
}
Geometric.hpp
DNDS::checkedIndexTo32
int32_t checkedIndexTo32(index v)
Narrow index to int32_t with range check; dies on overflow.
Definition
Defines.hpp:619
DNDS::index
int64_t index
Global row / DOF index type (signed 64-bit; handles multi-billion-cell meshes).
Definition
Defines.hpp:107
_METIS
Definition
Metis.hpp:8
v
Eigen::Matrix< real, 5, 1 > v
Definition
test_ArrayDOF.cpp:468
src
Geom
Metis.hpp
Generated by
1.9.8