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
7namespace _METIS
8{
9}
10
11namespace _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
19 }
20}
int32_t checkedIndexTo32(index v)
Narrow index to int32_t with range check; dies on overflow.
Definition Defines.hpp:619
int64_t index
Global row / DOF index type (signed 64-bit; handles multi-billion-cell meshes).
Definition Defines.hpp:107
Eigen::Matrix< real, 5, 1 > v