JDFTx  1.7.0
complexScalarFieldTildeData Struct Reference

Reciprocal space complex scalar field data Do not use this data structure directly or from a simple pointer complexScalarFieldTildeData*; work only with complexScalarFieldTilde's. The public functions of complexScalarFieldTildeData can be accessed with -> from the complexScalarFieldTilde. More...

#include <ScalarField.h>

Inheritance diagram for complexScalarFieldTildeData:
FieldData< complex > ManagedMemory< complex >

Public Types

typedef complex DataType
 Type of data in container (useful for templating)
 

Public Member Functions

complexScalarFieldTilde clone () const
 clone the data (NOTE: assigning complexScalarFieldTilde's makes a new reference to the same data)
 
complex getGzero () const
 get the G=0 component
 
void setGzero (complex Gzero)
 set the G=0 component
 
 complexScalarFieldTildeData (const GridInfo &gInfo, bool onGpu, PrivateTag)
 called only by complexScalarFieldTildeData::alloc()
 
- Public Member Functions inherited from FieldData< complex >
 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.
 
complexdata (bool shouldAbsorbScale=true)
 get a pointer to the actual data (after absorbing the scale factor, unless otherwise specified)
 
const complexdata (bool shouldAbsorbScale=true) const
 get a const pointer to the actual data (after absorbing the scale factor, unless otherwise specified)
 
complexdataGpu (bool shouldAbsorbScale=true)
 get a pointer to the actual data (after absorbing the scale factor, unless otherwise specified)
 
const complexdataGpu (bool shouldAbsorbScale=true) const
 get a const pointer to the actual data (after absorbing the scale factor, unless otherwise specified)
 
complexdataPref (bool shouldAbsorbScale=true)
 
const complexdataPref (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)
 

Static Public Member Functions

static complexScalarFieldTilde alloc (const GridInfo &gInfo, bool onGpu=false)
 Create reciprocal space data.
 

Additional Inherited Members

- Public Attributes inherited from FieldData< complex >
const int nElem
 number of elements
 
double scale
 overall scale factor of the data array
 
const GridInfogInfo
 simulation grid info
 

Detailed Description

Reciprocal space complex scalar field data Do not use this data structure directly or from a simple pointer complexScalarFieldTildeData*; work only with complexScalarFieldTilde's. The public functions of complexScalarFieldTildeData can be accessed with -> from the complexScalarFieldTilde.


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