QUDA  1.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | Protected Attributes | List of all members
quda::LatticeFieldParam Struct Reference

#include <lattice_field.h>

Inheritance diagram for quda::LatticeFieldParam:
Inheritance graph
[legend]

Public Member Functions

QudaPrecision Precision () const
 
QudaPrecision GhostPrecision () const
 
 LatticeFieldParam ()
 Default constructor for LatticeFieldParam. More...
 
 LatticeFieldParam (int nDim, const int *x, int pad, QudaPrecision precision, QudaGhostExchange ghostExchange=QUDA_GHOST_EXCHANGE_PAD)
 Constructor for creating a LatticeFieldParam from a set of parameters. More...
 
 LatticeFieldParam (const QudaGaugeParam &param)
 Constructor for creating a LatticeFieldParam from a QudaGaugeParam. Used for wrapping around a CPU reference field. More...
 
 LatticeFieldParam (const LatticeField &field)
 Contructor for creating LatticeFieldParam from a LatticeField. More...
 

Public Attributes

int nDim
 
int x [QUDA_MAX_DIM]
 
int pad
 
QudaSiteSubset siteSubset
 
QudaMemoryType mem_type
 
QudaGhostExchange ghostExchange
 
int r [QUDA_MAX_DIM]
 
double scale
 

Protected Attributes

QudaPrecision precision
 
QudaPrecision ghost_precision
 

Detailed Description

Definition at line 47 of file lattice_field.h.

Constructor & Destructor Documentation

◆ LatticeFieldParam() [1/4]

quda::LatticeFieldParam::LatticeFieldParam ( )
inline

Default constructor for LatticeFieldParam.

Definition at line 87 of file lattice_field.h.

References nDim.

Referenced by LatticeFieldParam().

Here is the caller graph for this function:

◆ LatticeFieldParam() [2/4]

quda::LatticeFieldParam::LatticeFieldParam ( int  nDim,
const int *  x,
int  pad,
QudaPrecision  precision,
QudaGhostExchange  ghostExchange = QUDA_GHOST_EXCHANGE_PAD 
)
inline

Constructor for creating a LatticeFieldParam from a set of parameters.

Parameters
[in]nDimNumber of field dimensions
[in]xArray of dimension lengths
[in]padField padding
[in]precisionField Precision
[in]ghostExchangeType of ghost exchange

Definition at line 106 of file lattice_field.h.

References errorQuda, nDim, and QUDA_MAX_DIM.

◆ LatticeFieldParam() [3/4]

quda::LatticeFieldParam::LatticeFieldParam ( const QudaGaugeParam param)
inline

Constructor for creating a LatticeFieldParam from a QudaGaugeParam. Used for wrapping around a CPU reference field.

Parameters
[in]paramContains the metadata for filling out the LatticeFieldParam

Definition at line 125 of file lattice_field.h.

References LatticeFieldParam(), nDim, quda::operator<<(), param, and QudaGaugeParam_s::X.

Here is the call graph for this function:

◆ LatticeFieldParam() [4/4]

quda::LatticeFieldParam::LatticeFieldParam ( const LatticeField field)

Contructor for creating LatticeFieldParam from a LatticeField.

Definition at line 47 of file lattice_field.cpp.

References nDim, r, quda::LatticeField::R(), x, and quda::LatticeField::X().

Here is the call graph for this function:

Member Function Documentation

◆ GhostPrecision()

QudaPrecision quda::LatticeFieldParam::GhostPrecision ( ) const
inline

Ghost precision

Definition at line 61 of file lattice_field.h.

References ghost_precision.

Referenced by quda::operator<<(), and quda::ColorSpinorField::reset().

Here is the caller graph for this function:

◆ Precision()

QudaPrecision quda::LatticeFieldParam::Precision ( ) const
inline

Member Data Documentation

◆ ghost_precision

QudaPrecision quda::LatticeFieldParam::ghost_precision
protected

◆ ghostExchange

QudaGhostExchange quda::LatticeFieldParam::ghostExchange

◆ mem_type

QudaMemoryType quda::LatticeFieldParam::mem_type

◆ nDim

int quda::LatticeFieldParam::nDim

◆ pad

int quda::LatticeFieldParam::pad

◆ precision

QudaPrecision quda::LatticeFieldParam::precision
protected

◆ r

int quda::LatticeFieldParam::r[QUDA_MAX_DIM]

The extended field radius (if applicable)

Definition at line 79 of file lattice_field.h.

Referenced by computeHISQForceQuda(), hisq_force_init(), hisq_force_test(), LatticeFieldParam(), quda::operator<<(), and quda::LatticeField::R().

◆ scale

double quda::LatticeFieldParam::scale

For fixed-point fields that need a global scaling factor

Definition at line 82 of file lattice_field.h.

Referenced by quda::operator<<(), and quda::LatticeField::Scale().

◆ siteSubset

QudaSiteSubset quda::LatticeFieldParam::siteSubset

◆ x

int quda::LatticeFieldParam::x[QUDA_MAX_DIM]

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