Peano
Loading...
Searching...
No Matches
AoSLexicographicEnumerator.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
45 constexpr GPUCallableInlineMethod AoSLexicographicEnumerator(int numberOfCells, int numberOfDoFsPerAxisInCell, int haloSize, int unknowns, int numberOfAuxiliaryVariables):
46 _numberOfCells(numberOfCells),
47 _numberOfDoFsPerAxisInCell(numberOfDoFsPerAxisInCell),
48 _haloSize(haloSize),
49 _unknowns(unknowns),
50 _numberOfAuxiliaryVariables(numberOfAuxiliaryVariables) {}
51
74
75#if defined(GPUOffloadingOff)
76 std::string toString() const;
77#endif
78
87
95
96 const int _numberOfCells;
98 const int _haloSize;
99 const int _unknowns;
101 };
102} // 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 operator()(int cellIndex, const tarch::la::Vector< Dimensions, int > &volumeIndex, int unknown) const InlineMethod
Access an index.
GPUCallableInlineMethod int numberOfDofsPerCell() const InlineMethod
constexpr GPUCallableInlineMethod AoSLexicographicEnumerator(int numberOfCells, int numberOfDoFsPerAxisInCell, int haloSize, int unknowns, int numberOfAuxiliaryVariables)
GPUCallableInlineMethod int size() 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