8 dofsPerAxis(dofsPerAxis_),
11 dimensions(dimensions_) {
23 return name==rhs.name;
28 return unknowns * getTotalNumberOfDofsPerPatch();
58 std::ostringstream msg;
60 msg <<
"(name:" << name
61 <<
",dofs-per-axis:" << dofsPerAxis
62 <<
",unknowns:" << unknowns
64 <<
",dim:" << dimensions
#define assertion1(expr, param)
Represents one variable that is subsequently attached to the patches of a file.
const int unknowns
If this unknown holds 1, it is scalar, for d it is vector data, and so forth.
bool operator==(const convert::data::Variable &rhs) const
bool operator<(const convert::data::Variable &rhs) const
int getVerticesPerAxisInCartesianMesh() const
Variable(std::string name_, int dofsPerAxis_, int unknowns_, PeanoDataType type_, int dimensions_)
int getTotalNumberOfVerticesInCartesianMesh() const
std::string toString() const
int getTotalNumberOfDofsPerPatch() const
int getTotalNumberOfQuantitiesPerPatch() const
This is getTotalNumberOfDofsPerPatch() times the number of unknowns per dof.
int getTotalNumberOfCellsInCartesianMesh() const
int aPowI(int i, int a)
Computes the i-th power of a in integer arithmetic.