Peano
Loading...
Searching...
No Matches
AoSoALexicographicEnumerator.h
Go to the documentation of this file.
1// This file is part of the ExaHyPE2 project. For conditions of distribution and
2// use, please see the copyright notice at www.peano-framework.org
3#pragma once
4
5#include <functional>
6#include <string>
7
11#include "tarch/la/Vector.h"
13
14namespace exahype2::enumerator {
39 constexpr GPUCallableInlineMethod AoSoALexicographicEnumerator(int numberOfCells, int numberOfDoFsPerAxisInCell, int haloSize, int unknowns, int numberOfAuxiliaryVariables):
40 _numberOfCells(numberOfCells),
41 _numberOfDoFsPerAxisInCell(numberOfDoFsPerAxisInCell),
42 _haloSize(haloSize),
43 _unknowns(unknowns),
44 _numberOfAuxiliaryVariables(numberOfAuxiliaryVariables) {}
45
67
68#if defined(GPUOffloadingOff)
69 std::string toString() const;
70#endif
71
83
91
92 const int _numberOfCells;
94 const int _haloSize;
95 const int _unknowns;
97 };
98} // namespace exahype2::enumerator
#define GPUCallableInlineMethod
Definition accelerator.h:37
std::string toString(Filter filter)
Definition convert.cpp:170
auto volumeIndex(Args... args)
Definition VolumeIndex.h:54
GPUCallableInlineMethod int size() const InlineMethod
Returns the total size.
constexpr GPUCallableInlineMethod AoSoALexicographicEnumerator(int numberOfCells, int numberOfDoFsPerAxisInCell, int haloSize, int unknowns, int numberOfAuxiliaryVariables)
GPUCallableInlineMethod int operator()(int cellIndex, const tarch::la::Vector< Dimensions, int > &volumeIndex, int unknown) const InlineMethod
Access an index.
GPUCallableInlineMethod int numberOfDofsPerCell() const InlineMethod
Simple vector class.
Definition Vector.h:134
#define InlineMethod
This is the marker that is to be used after the argument list of a function declaration.
Definition tarch.h:58