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
14enum class PostCell {
15 IsHalo,
16 IsWindow,
18};
19
20namespace maia {
21namespace post {
22namespace cell {
23
25constexpr std::underlying_type<PostCell>::type p(const PostCell property) {
26 return static_cast<std::underlying_type<PostCell>::type>(property);
27}
28
29using BitsetType = std::bitset<p(PostCell::NumProperties)>;
30
31} // namespace cell
32} // namespace post
33} // namespace maia
34
35#endif // FVCELLPROPERTIES_H_
constexpr std::underlying_type< PostCell >::type p(const PostCell property)
Converts property name to underlying integer value.
std::bitset< p(PostCell::NumProperties)> BitsetType
Namespace for auxiliary functions/classes.
PostCell
POST cell Property Labels.
@ IsHalo
cell is halo-cell
@ IsWindow
cell is window-cell