Peano
Loading...
Searching...
No Matches
exahype2::ccz4::ahf::GridData Struct Reference

Pointwise Cartesian grid data. More...

#include <ahf-data.h>

Collaboration diagram for exahype2::ccz4::ahf::GridData:

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)

Detailed Description

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.

Member Function Documentation

◆ cell()

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.

Here is the call graph for this function:

◆ coordinatesEqual()

bool exahype2::ccz4::ahf::GridData::coordinatesEqual ( double first,
double second )
staticprivate

Definition at line 509 of file ahf-data.h.

◆ isConsistent()

bool exahype2::ccz4::ahf::GridData::isConsistent ( ) const

Definition at line 444 of file ahf-data.h.

References coordinates, numberOfVariables, and values.

Referenced by cell().

Here is the caller graph for this function:

◆ numberOfPoints()

std::size_t exahype2::ccz4::ahf::GridData::numberOfPoints ( ) const

Definition at line 435 of file ahf-data.h.

References coordinates.

Referenced by resize().

Here is the caller graph for this function:

◆ 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.

Here is the call graph for this function:

◆ value() [1/4]

double & exahype2::ccz4::ahf::GridData::value ( const GridCoordinate & coordinate,
CompactField field )

Definition at line 478 of file ahf-data.h.

References value().

Here is the call graph for this function:

◆ value() [2/4]

const double & exahype2::ccz4::ahf::GridData::value ( const GridCoordinate & coordinate,
CompactField field ) const

Definition at line 482 of file ahf-data.h.

References value().

Here is the call graph for this function:

◆ value() [3/4]

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ value() [4/4]

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.

Here is the call graph for this function:

◆ valueIndex()

std::size_t exahype2::ccz4::ahf::GridData::valueIndex ( const GridCoordinate & coordinate,
std::size_t variableIndex ) const
private

Definition at line 487 of file ahf-data.h.

References coordinates, and numberOfVariables.

Referenced by value(), and value().

Here is the caller graph for this function:

Field Documentation

◆ coordinates

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().

◆ numberOfVariables

std::size_t exahype2::ccz4::ahf::GridData::numberOfVariables = NumberOfCompactFields
staticconstexpr

Definition at line 433 of file ahf-data.h.

Referenced by cell(), isConsistent(), resize(), and valueIndex().

◆ values

std::vector<double> exahype2::ccz4::ahf::GridData::values

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