QUDA  v1.1.0
A library for QCD on GPUs
Public Member Functions | Public Attributes | List of all members
quda::ColorSpinorParam Class Reference

#include <color_spinor_field.h>

+ Inheritance diagram for quda::ColorSpinorParam:

Public Member Functions

void setPrecision (QudaPrecision precision, QudaPrecision ghost_precision=QUDA_INVALID_PRECISION, bool force_native=false)
 
 ColorSpinorParam (const ColorSpinorField &a)
 
 ColorSpinorParam ()
 
 ColorSpinorParam (void *V, QudaInvertParam &inv_param, const int *X, const bool pc_solution, QudaFieldLocation location=QUDA_CPU_FIELD_LOCATION)
 
 ColorSpinorParam (ColorSpinorParam &cpuParam, QudaInvertParam &inv_param, QudaFieldLocation location=QUDA_CUDA_FIELD_LOCATION)
 
void print ()
 
virtual ~ColorSpinorParam ()
 
- Public Member Functions inherited from quda::LatticeFieldParam
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

QudaFieldLocation location
 
int nColor
 
int nSpin
 
int nVec
 
QudaTwistFlavorType twistFlavor
 
QudaSiteOrder siteOrder
 
QudaFieldOrder fieldOrder
 
QudaGammaBasis gammaBasis
 
QudaFieldCreate create
 
QudaPCType pc_type
 
QudaParity suggested_parity
 
void * v
 
void * norm
 
bool is_composite
 for deflation solvers: More...
 
int composite_dim
 
bool is_component
 
int component_id
 
- Public Attributes inherited from quda::LatticeFieldParam
int nDim
 
int x [QUDA_MAX_DIM]
 
int pad
 
QudaSiteSubset siteSubset
 
QudaMemoryType mem_type
 
QudaGhostExchange ghostExchange
 
int r [QUDA_MAX_DIM]
 
double scale
 

Additional Inherited Members

- Protected Attributes inherited from quda::LatticeFieldParam
QudaPrecision precision
 
QudaPrecision ghost_precision
 

Detailed Description

Definition at line 131 of file color_spinor_field.h.

Constructor & Destructor Documentation

◆ ColorSpinorParam() [1/4]

quda::ColorSpinorParam::ColorSpinorParam ( const ColorSpinorField a)

Definition at line 12 of file color_spinor_field.cpp.

◆ ColorSpinorParam() [2/4]

quda::ColorSpinorParam::ColorSpinorParam ( )
inline

Definition at line 192 of file color_spinor_field.h.

◆ ColorSpinorParam() [3/4]

quda::ColorSpinorParam::ColorSpinorParam ( void *  V,
QudaInvertParam inv_param,
const int *  X,
const bool  pc_solution,
QudaFieldLocation  location = QUDA_CPU_FIELD_LOCATION 
)
inline

Definition at line 215 of file color_spinor_field.h.

◆ ColorSpinorParam() [4/4]

quda::ColorSpinorParam::ColorSpinorParam ( ColorSpinorParam cpuParam,
QudaInvertParam inv_param,
QudaFieldLocation  location = QUDA_CUDA_FIELD_LOCATION 
)
inline

Definition at line 288 of file color_spinor_field.h.

◆ ~ColorSpinorParam()

virtual quda::ColorSpinorParam::~ColorSpinorParam ( )
inlinevirtual

Definition at line 335 of file color_spinor_field.h.

Member Function Documentation

◆ print()

void quda::ColorSpinorParam::print ( )
inline

for deflation etc.

Definition at line 313 of file color_spinor_field.h.

◆ setPrecision()

void quda::ColorSpinorParam::setPrecision ( QudaPrecision  precision,
QudaPrecision  ghost_precision = QUDA_INVALID_PRECISION,
bool  force_native = false 
)
inline

If using CUDA native fields, this function will ensure that the field ordering is appropriate for the new precision setting to maintain this status

Parameters
precision_New precision value
ghost_precision_New ghost precision value

Definition at line 172 of file color_spinor_field.h.

Member Data Documentation

◆ component_id

int quda::ColorSpinorParam::component_id

Definition at line 163 of file color_spinor_field.h.

◆ composite_dim

int quda::ColorSpinorParam::composite_dim

Definition at line 161 of file color_spinor_field.h.

◆ create

QudaFieldCreate quda::ColorSpinorParam::create

Definition at line 146 of file color_spinor_field.h.

◆ fieldOrder

QudaFieldOrder quda::ColorSpinorParam::fieldOrder

Definition at line 144 of file color_spinor_field.h.

◆ gammaBasis

QudaGammaBasis quda::ColorSpinorParam::gammaBasis

Definition at line 145 of file color_spinor_field.h.

◆ is_component

bool quda::ColorSpinorParam::is_component

Definition at line 162 of file color_spinor_field.h.

◆ is_composite

bool quda::ColorSpinorParam::is_composite

for deflation solvers:

Definition at line 160 of file color_spinor_field.h.

◆ location

QudaFieldLocation quda::ColorSpinorParam::location

Definition at line 134 of file color_spinor_field.h.

◆ nColor

int quda::ColorSpinorParam::nColor

Definition at line 136 of file color_spinor_field.h.

◆ norm

void* quda::ColorSpinorParam::norm

Definition at line 157 of file color_spinor_field.h.

◆ nSpin

int quda::ColorSpinorParam::nSpin

Definition at line 137 of file color_spinor_field.h.

◆ nVec

int quda::ColorSpinorParam::nVec

Definition at line 138 of file color_spinor_field.h.

◆ pc_type

QudaPCType quda::ColorSpinorParam::pc_type

Definition at line 148 of file color_spinor_field.h.

◆ siteOrder

QudaSiteOrder quda::ColorSpinorParam::siteOrder

Definition at line 142 of file color_spinor_field.h.

◆ suggested_parity

QudaParity quda::ColorSpinorParam::suggested_parity

Used to specify whether a single parity field is even/odd By construction not enforced, this is more of an optional metadata to specify, for ex, if an eigensolver is for an even or odd parity.

Definition at line 154 of file color_spinor_field.h.

◆ twistFlavor

QudaTwistFlavorType quda::ColorSpinorParam::twistFlavor

Definition at line 140 of file color_spinor_field.h.

◆ v

void* quda::ColorSpinorParam::v

Definition at line 156 of file color_spinor_field.h.


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