Peano
Loading...
Searching...
No Matches
SoALexicographicEnumerator.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 {
40 constexpr GPUCallableInlineMethod SoALexicographicEnumerator(int numberOfCells, int numberOfDoFsPerAxisInCell, int haloSize, int unknowns, int numberOfAuxiliaryVariables):
41 _numberOfCells(numberOfCells),
42 _numberOfDoFsPerAxisInCell(numberOfDoFsPerAxisInCell),
43 _haloSize(haloSize),
44 _unknowns(unknowns),
45 _numberOfAuxiliaryVariables(numberOfAuxiliaryVariables) {}
46
66
67#if defined(GPUOffloadingOff)
68 std::string toString() const;
69#endif
70
82
83 const int _numberOfCells;
85 const int _haloSize;
86 const int _unknowns;
88 };
89} // 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
constexpr GPUCallableInlineMethod SoALexicographicEnumerator(int numberOfCells, int numberOfDoFsPerAxisInCell, int haloSize, int unknowns, int numberOfAuxiliaryVariables)
GPUCallableInlineMethod int size() const InlineMethod
Returns the total size.
GPUCallableInlineMethod int operator()(int cellIndex, const tarch::la::Vector< Dimensions, int > &volumeIndex, int unknown) const InlineMethod
Access an index.
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