CHROMA
Public Member Functions | Public Attributes | List of all members
Chroma::RandZ2WallQuarkSourceConstEnv::Params Struct Reference

Random Z2 wall source parameters. More...

#include <rndz2wall_source_const.h>

Public Member Functions

 Params ()
 Initialize. More...
 
 Params (XMLReader &in, const std::string &path)
 Read parameters. More...
 
void writeXML (XMLWriter &in, const std::string &path) const
 

Public Attributes

Seed ran_seed
 
int j_decay
 
int t_source
 

Detailed Description

Random Z2 wall source parameters.

Definition at line 25 of file rndz2wall_source_const.h.

Constructor & Destructor Documentation

◆ Params() [1/2]

Chroma::RandZ2WallQuarkSourceConstEnv::Params::Params ( )

Initialize.

Definition at line 64 of file rndz2wall_source_const.cc.

References j_decay, and t_source.

◆ Params() [2/2]

Chroma::RandZ2WallQuarkSourceConstEnv::Params::Params ( XMLReader &  in,
const std::string &  path 
)

Read parameters.

if 0 #warning "CHECK IF SETTING SEED IS DESIRED BEHAVIOR"

WARNING!!! Not sure this is the desired behavior

  read(paramtop, "ran_seed", ran_seed);
  QDP::RNG::setrn(ran_seed);

#else #warning "CHECK IF GRABBING SEED IS DESIRED BEHAVIOR" QDP::RNG::savern(ran_seed); #endif

Definition at line 72 of file rndz2wall_source_const.cc.

References j_decay, ran_seed, Chroma::read(), and t_source.

Member Function Documentation

◆ writeXML()

void Chroma::RandZ2WallQuarkSourceConstEnv::Params::writeXML ( XMLWriter &  in,
const std::string &  path 
) const

Definition at line 112 of file rndz2wall_source_const.cc.

References j_decay, Chroma::pop(), Chroma::push(), ran_seed, t_source, and Chroma::write().

Referenced by Chroma::write().

Member Data Documentation

◆ j_decay

int Chroma::RandZ2WallQuarkSourceConstEnv::Params::j_decay

◆ ran_seed

Seed Chroma::RandZ2WallQuarkSourceConstEnv::Params::ran_seed

Set the seed to this value

Definition at line 31 of file rndz2wall_source_const.h.

Referenced by Chroma::RandZ2WallQuarkSourceConstEnv::SourceConst< T >::operator()(), Params(), and writeXML().

◆ t_source

int Chroma::RandZ2WallQuarkSourceConstEnv::Params::t_source

source time slice location

Definition at line 34 of file rndz2wall_source_const.h.

Referenced by Chroma::RandZ2WallQuarkSourceConstEnv::SourceConst< T >::operator()(), Params(), and writeXML().


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