#include <pointData.hpp>
Public Member Functions | |
Data ()=default | |
Data (DataType *values, PetscInt numberComponents, PetscInt dataSizeIn=0, PetscInt offset=0) | |
Data (DataType *values, const ablate::particles::Field &field) | |
template<class IndexType > | |
DataType * | operator[] (IndexType particle) const |
Inline function to compute the memory address at this particle. | |
template<class IndexType > | |
DataType & | operator() (IndexType particle) |
template<class IndexType , class DimType > | |
DataType & | operator() (IndexType particle, DimType dim) |
template<class DestinationDataType , class IndexType > | |
void | CopyFrom (DestinationDataType *source, IndexType p) const |
template<class DestinationDataType , class IndexType > | |
void | AddFrom (DestinationDataType *source, IndexType p) const |
template<class DestinationDataType , class IndexType > | |
void | CopyAll (DestinationDataType *destination, IndexType np) const |
Public Attributes | |
DataType * | values = nullptr |
the array for the solution values | |
PetscInt | numberComponents = 0 |
The number of the components. | |
PetscInt | dataSize = 0 |
The size of the component for this data. | |
PetscInt | offset = 0 |
The offset in the local array, 0 for aux, computed for sol. | |
Computes the memory location for particle field data
|
default |
empty default constructor
|
inline |
The default constructor
values | |
numberComponents | |
dataSizeIn | |
offset |
|
inline |
Takes the input values from the particle field
values | |
numberComponents | |
dataSizeIn | |
offset |
|
inline |
Adds all of the dimensions of this field to specified destination
IndexType |
source | |
np | the number of particles to copy |
|
inline |
Copy the values in this pointData to destination
IndexType |
destination | |
np | the number of particles to copy |
|
inline |
Copy all of the dimensions of this field to specified destination
IndexType |
source | |
np | the number of particles to copy |
|
inline |
Return the value at this particle
IndexType |
particle |
|
inline |
Return the value at this particle
IndexType |
particle |