CHROMA
wilson_gaugeact_params.cc
Go to the documentation of this file.
1 #include "chromabase.h"
3 
4 namespace Chroma {
5 
6 
7  WilsonGaugeActParams::WilsonGaugeActParams(XMLReader& xml_in, const std::string& path) {
8  XMLReader paramtop(xml_in, path);
9 
10  try {
11  read(paramtop, "./beta", beta);
12 
13  // Read optional anisoParam.
14  if (paramtop.count("AnisoParam") != 0)
15  read(paramtop, "AnisoParam", aniso);
16  }
17  catch( const std::string& e ) {
18  QDPIO::cerr << "Error reading XML: " << e << std::endl;
19  QDP_abort(1);
20  }
21  }
22 
23  void read(XMLReader& xml, const std::string& path, WilsonGaugeActParams& p) {
24  WilsonGaugeActParams tmp(xml, path);
25  p=tmp;
26  }
27 }
Primary include file for CHROMA library code.
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams &param)
Read parameters.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
LatticeFermion tmp
Definition: mespbg5p_w.cc:36
::std::string string
Definition: gtest.h:1979
Params for Wilson gauge action.