24#ifndef SUPER_CONST_2D_HH
25#define SUPER_CONST_2D_HH
33template <
typename T,
typename W>
35 :
SuperF2D<T,W>(superStructure, v.size()),
38 this->
getName() =
"const(" + std::to_string(
_c.size()) +
")";
41template <
typename T,
typename W>
43 :
SuperConst2D(superStructure, std::vector<W>(1, scalar))
46template <
typename T,
typename W>
49 for (
int i = 0; i < this->getTargetDim(); ++i) {
std::string & getName()
read and write access to name
Functor returning a constant vector for all inputs.
const std::vector< W > _c
bool operator()(W output[], const int input[]) override
SuperConst2D(SuperStructure< T, 2 > &superStructure, std::vector< W > v)
Constructor accepting std::vector.
represents all functors that operate on a SuperStructure<T,2> in general
Top level namespace for all of OpenLB.