Peano
Loading...
Searching...
No Matches
SingleDoFEnumerator.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 {
23 constexpr GPUCallableInlineMethod SingleDoFEnumerator(int unknowns, int numberOfAuxiliaryVariables):
24 _unknowns(unknowns),
25 _numberOfAuxiliaryVariables(numberOfAuxiliaryVariables) {}
26
34 GPUCallableInlineMethod int operator()(int, const tarch::la::Vector<Dimensions, int>&, int unknown) const InlineMethod { return unknown; }
35
36#if defined(GPUOffloadingOff)
37 std::string toString() const;
38#endif
39
41
42 const int _unknowns;
44 };
45} // namespace exahype2::enumerator
std::string toString(exahype2::RefinementCommand value)
#define GPUCallableInlineMethod
Definition accelerator.h:37
GPUCallableInlineMethod int size() const
constexpr GPUCallableInlineMethod SingleDoFEnumerator(int unknowns, int numberOfAuxiliaryVariables)
GPUCallableInlineMethod int operator()(int, const tarch::la::Vector< Dimensions, int > &, int unknown) const InlineMethod
Access an index.
Simple vector class.
Definition Vector.h:159
#define InlineMethod
Generic identifier for inlined functions.
Definition tarch.h:66