Peano
Loading...
Searching...
No Matches
exahype2::enumerator::SingleDoFEnumerator Struct Reference

Default enumerator for dofs. More...

#include <SingleDoFEnumerator.h>

Public Member Functions

constexpr GPUCallableInlineMethod SingleDoFEnumerator (int unknowns, int numberOfAuxiliaryVariables)
 
GPUCallableInlineMethod int operator() (int, const tarch::la::Vector< Dimensions, int > &, int unknown) const InlineMethod
 Access an index.
 
GPUCallableInlineMethod int size () const
 

Data Fields

const int _unknowns
 
const int _numberOfAuxiliaryVariables
 

Detailed Description

Default enumerator for dofs.

We assume that we have a lexicographic ordering of the cell data and all data therein are ordered lexicographically and stored in as AoS.

Definition at line 22 of file SingleDoFEnumerator.h.

Constructor & Destructor Documentation

◆ SingleDoFEnumerator()

constexpr GPUCallableInlineMethod exahype2::enumerator::SingleDoFEnumerator::SingleDoFEnumerator ( int unknowns,
int numberOfAuxiliaryVariables )
constexpr

Definition at line 23 of file SingleDoFEnumerator.h.

Member Function Documentation

◆ operator()()

GPUCallableInlineMethod int exahype2::enumerator::SingleDoFEnumerator::operator() ( int ,
const tarch::la::Vector< Dimensions, int > & ,
int unknown ) const

Access an index.

The index always refers to the interior of the cells. So you can use negative indices if you want.

Definition at line 34 of file SingleDoFEnumerator.h.

◆ size()

GPUCallableInlineMethod int exahype2::enumerator::SingleDoFEnumerator::size ( ) const

Definition at line 40 of file SingleDoFEnumerator.h.

References _numberOfAuxiliaryVariables, and _unknowns.

Referenced by peano4.visualisation.input.Patch.Patch::__repr__().

Here is the caller graph for this function:

Field Documentation

◆ _numberOfAuxiliaryVariables

const int exahype2::enumerator::SingleDoFEnumerator::_numberOfAuxiliaryVariables

Definition at line 43 of file SingleDoFEnumerator.h.

Referenced by size().

◆ _unknowns


The documentation for this struct was generated from the following file: