Reciprocal space real scalar field data Do not use this data structure directly or from a simple pointer ScalarFieldTildeData*; work only with ScalarFieldTilde's. The public functions of ScalarFieldTildeData can be accessed with -> from the ScalarFieldTilde.
More...
|
ScalarFieldTilde | clone () const |
| clone the data (NOTE: assigning ScalarFieldTilde's makes a new reference to the same data)
|
|
double | getGzero () const |
| get the G=0 component
|
|
void | setGzero (double Gzero) |
| set the G=0 component
|
|
| ScalarFieldTildeData (const GridInfo &gInfo, bool onGpu, PrivateTag) |
| called only by ScalarFieldTildeData::alloc()
|
|
| FieldData (const GridInfo &gInfo, string category, int nElem, bool onGpu=false) |
|
void | copyData (const FieldData< complex > &other) |
| Copy data and scale (used by clone())
|
|
void | absorbScale () const |
| Absorb scale factor into data.
|
|
complex * | data (bool shouldAbsorbScale=true) |
| get a pointer to the actual data (after absorbing the scale factor, unless otherwise specified)
|
|
const complex * | data (bool shouldAbsorbScale=true) const |
| get a const pointer to the actual data (after absorbing the scale factor, unless otherwise specified)
|
|
complex * | dataGpu (bool shouldAbsorbScale=true) |
| get a pointer to the actual data (after absorbing the scale factor, unless otherwise specified)
|
|
const complex * | dataGpu (bool shouldAbsorbScale=true) const |
| get a const pointer to the actual data (after absorbing the scale factor, unless otherwise specified)
|
|
complex * | dataPref (bool shouldAbsorbScale=true) |
|
const complex * | dataPref (bool shouldAbsorbScale=true) const |
|
void | zero () |
| initialize to zero
|
|
bool | isOnGpu () const |
| Check where the data is (for #ifdef simplicity exposed even when no GPU_ENABLED)
|
|
void | sendData (const MPIUtil *mpiUtil, int dest, int tag, MPIUtil::Request *request=0) const |
|
void | recvData (const MPIUtil *mpiUtil, int dest, int tag, MPIUtil::Request *request=0) |
|
void | bcastData (const MPIUtil *mpiUtil, int root=0, MPIUtil::Request *request=0) |
|
void | allReduceData (const MPIUtil *mpiUtil, MPIUtil::ReduceOp op, bool safeMode=false, MPIUtil::Request *request=0) |
|
void | reduceData (const MPIUtil *mpiUtil, MPIUtil::ReduceOp op, int root=0, MPIUtil::Request *request=0) |
|
Reciprocal space real scalar field data Do not use this data structure directly or from a simple pointer ScalarFieldTildeData*; work only with ScalarFieldTilde's. The public functions of ScalarFieldTildeData can be accessed with -> from the ScalarFieldTilde.