MAIA
bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
postcellproperties.h
Go to the documentation of this file.
1
// Copyright (C) 2024 The m-AIA AUTHORS
2
//
3
// This file is part of m-AIA (https://git.rwth-aachen.de/aia/m-AIA/m-AIA)
4
//
5
// SPDX-License-Identifier: LGPL-3.0-only
6
7
#ifndef POSTCELLPROPERTIES_H_
8
#define POSTCELLPROPERTIES_H_
9
10
#include <bitset>
11
#include <type_traits>
12
14
enum class
PostCell
{
15
IsHalo
,
16
IsWindow
,
17
NumProperties
18
};
19
20
namespace
maia
{
21
namespace
post {
22
namespace
cell {
23
25
constexpr
std::underlying_type<PostCell>::type
p
(
const
PostCell
property) {
26
return
static_cast<
std::underlying_type<PostCell>::type
>
(property);
27
}
28
29
using
BitsetType
= std::bitset<
p
(PostCell::NumProperties)>;
30
31
}
// namespace cell
32
}
// namespace post
33
}
// namespace maia
34
35
#endif
// FVCELLPROPERTIES_H_
maia::post::cell::p
constexpr std::underlying_type< PostCell >::type p(const PostCell property)
Converts property name to underlying integer value.
Definition:
postcellproperties.h:25
maia::post::cell::BitsetType
std::bitset< p(PostCell::NumProperties)> BitsetType
Definition:
postcellproperties.h:29
maia
Namespace for auxiliary functions/classes.
Definition:
acaobserverdatacollector.h:76
PostCell
PostCell
POST cell Property Labels.
Definition:
postcellproperties.h:14
PostCell::NumProperties
@ NumProperties
PostCell::IsHalo
@ IsHalo
cell is halo-cell
PostCell::IsWindow
@ IsWindow
cell is window-cell
home
gitlab-runner
scratch
builds
oxpnswJ6
1
aia
m-AIA
m-AIA
src
POST
postcellproperties.h
Generated on Sun Jun 16 2024 23:45:09 for MAIA by
1.9.5