|
Peano
|
Pointwise Cartesian grid data. More...
#include <ahf-data.h>

Public Member Functions | |
| std::size_t | numberOfPoints () const |
| void | resize (std::size_t numberOfPoints) |
| bool | isConsistent () const |
| CompactCellView | cell (std::size_t cellIndex) const |
| double & | value (const GridCoordinate &coordinate, std::size_t variableIndex) |
| const double & | value (const GridCoordinate &coordinate, std::size_t variableIndex) const |
| double & | value (const GridCoordinate &coordinate, CompactField field) |
| const double & | value (const GridCoordinate &coordinate, CompactField field) const |
Data Fields | |
| std::vector< GridCoordinate > | coordinates |
| std::vector< double > | values |
Static Public Attributes | |
| static constexpr std::size_t | numberOfVariables = NumberOfCompactFields |
Private Member Functions | |
| std::size_t | valueIndex (const GridCoordinate &coordinate, std::size_t variableIndex) const |
Static Private Member Functions | |
| static bool | coordinatesEqual (double first, double second) |
Pointwise Cartesian grid data.
Values are stored as a flat point-major array: values[pointIndex * numberOfVariables + variableIndex]
Definition at line 429 of file ahf-data.h.
| CompactCellView exahype2::ccz4::ahf::GridData::cell | ( | std::size_t | cellIndex | ) | const |
Definition at line 448 of file ahf-data.h.
References coordinates, isConsistent(), numberOfVariables, and values.

|
staticprivate |
Definition at line 509 of file ahf-data.h.
| bool exahype2::ccz4::ahf::GridData::isConsistent | ( | ) | const |
Definition at line 444 of file ahf-data.h.
References coordinates, numberOfVariables, and values.
Referenced by cell().

| std::size_t exahype2::ccz4::ahf::GridData::numberOfPoints | ( | ) | const |
Definition at line 435 of file ahf-data.h.
References coordinates.
Referenced by resize().

| void exahype2::ccz4::ahf::GridData::resize | ( | std::size_t | numberOfPoints | ) |
Definition at line 439 of file ahf-data.h.
References coordinates, numberOfPoints(), numberOfVariables, and values.

| double & exahype2::ccz4::ahf::GridData::value | ( | const GridCoordinate & | coordinate, |
| CompactField | field ) |
Definition at line 478 of file ahf-data.h.
References value().

| const double & exahype2::ccz4::ahf::GridData::value | ( | const GridCoordinate & | coordinate, |
| CompactField | field ) const |
Definition at line 482 of file ahf-data.h.
References value().

| double & exahype2::ccz4::ahf::GridData::value | ( | const GridCoordinate & | coordinate, |
| std::size_t | variableIndex ) |
Definition at line 470 of file ahf-data.h.
References valueIndex(), and values.
Referenced by value(), and value().


| const double & exahype2::ccz4::ahf::GridData::value | ( | const GridCoordinate & | coordinate, |
| std::size_t | variableIndex ) const |
Definition at line 474 of file ahf-data.h.
References valueIndex(), and values.

|
private |
Definition at line 487 of file ahf-data.h.
References coordinates, and numberOfVariables.
Referenced by value(), and value().

| std::vector<GridCoordinate> exahype2::ccz4::ahf::GridData::coordinates |
Definition at line 430 of file ahf-data.h.
Referenced by cell(), isConsistent(), numberOfPoints(), resize(), and valueIndex().
|
staticconstexpr |
Definition at line 433 of file ahf-data.h.
Referenced by cell(), isConsistent(), resize(), and valueIndex().
| std::vector<double> exahype2::ccz4::ahf::GridData::values |
Definition at line 431 of file ahf-data.h.
Referenced by tarch.plotter.api.input.Patch.Patch::__repr__(), cell(), isConsistent(), resize(), value(), and value().