QUDA  0.9.0
Public Member Functions | Public Attributes | List of all members
quda::LatticeFieldParam Struct Reference

#include <lattice_field.h>

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

Public Member Functions

 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
 
QudaPrecision precision
 
QudaSiteSubset siteSubset
 
QudaMemoryType mem_type
 
QudaGhostExchange ghostExchange
 
int r [QUDA_MAX_DIM]
 

Detailed Description

Definition at line 44 of file lattice_field.h.

Constructor & Destructor Documentation

◆ LatticeFieldParam() [1/4]

quda::LatticeFieldParam::LatticeFieldParam ( )
inline

Default constructor for LatticeFieldParam.

Definition at line 68 of file lattice_field.h.

References fused_exterior_ndeg_tm_dslash_cuda_gen::i, nDim, r, and x.

◆ 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 86 of file lattice_field.h.

References errorQuda, fused_exterior_ndeg_tm_dslash_cuda_gen::i, nDim, QUDA_MAX_DIM, and x.

◆ 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 104 of file lattice_field.h.

References fused_exterior_ndeg_tm_dslash_cuda_gen::i, nDim, param, and QudaGaugeParam_s::X.

◆ LatticeFieldParam() [4/4]

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

Contructor for creating LatticeFieldParam from a LatticeField.

Definition at line 43 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 Data Documentation

◆ ghostExchange

QudaGhostExchange quda::LatticeFieldParam::ghostExchange

The type of ghost exchange to be done with this field

Definition at line 60 of file lattice_field.h.

Referenced by computeKSLinkQuda(), dslash_4_4d(), dw_dslash(), hisq_force_init(), init(), initFields(), invert_test(), main(), GaugeAlgTest::SetUp(), unitarize_link_test(), updateGaugeFieldQuda(), and wil_dslash().

◆ mem_type

QudaMemoryType quda::LatticeFieldParam::mem_type

Definition at line 57 of file lattice_field.h.

◆ nDim

int quda::LatticeFieldParam::nDim

◆ pad

int quda::LatticeFieldParam::pad

◆ precision

QudaPrecision quda::LatticeFieldParam::precision

◆ r

int quda::LatticeFieldParam::r[QUDA_MAX_DIM]

The extended field radius (if applicable)

Definition at line 63 of file lattice_field.h.

Referenced by hisq_force_init(), hisq_force_test(), and LatticeFieldParam().

◆ siteSubset

QudaSiteSubset quda::LatticeFieldParam::siteSubset

◆ x

int quda::LatticeFieldParam::x[QUDA_MAX_DIM]

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