15 namespace InlineDefaultGaugeField
22 const std::string private_id =
"default_gauge_field";
52 catch( std::bad_cast )
54 QDPIO::cerr << __func__ <<
": cast error"
60 QDPIO::cerr << __func__ <<
": error message: " << e
76 void set(
const multi1d<LatticeColorMatrix>&
u,
77 XMLBufferWriter& record_xml)
84 QDPIO::cerr << __func__ <<
": gauge field already initialized" << std::endl;
94 XMLBufferWriter file_xml;
95 push(file_xml,
"gauge");
96 write(file_xml,
"id",
int(0));
105 catch (std::bad_cast)
107 QDPIO::cerr << __func__ <<
": cast error"
113 QDPIO::cerr << __func__ <<
": error message: " << e
127 void get(multi1d<LatticeColorMatrix>&
u,
128 XMLBufferWriter& file_xml,
129 XMLBufferWriter& record_xml)
135 QDPIO::cerr << __func__ <<
": gauge field not initialized" << std::endl;
146 catch (std::bad_cast)
148 QDPIO::cerr << __func__ <<
": cast error"
154 QDPIO::cerr << __func__ <<
": error message: " << e
Primary include file for CHROMA library code.
Functions to set and get default gauge field.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams ¶m)
Writer parameters.
void reset()
Reset the default gauge field state.
void set(const multi1d< LatticeColorMatrix > &u, XMLBufferWriter &record_xml)
Set the default gauge field.
void get(multi1d< LatticeColorMatrix > &u, XMLBufferWriter &file_xml, XMLBufferWriter &record_xml)
Get the default gauge field.
std::string getId()
Get the default gauge field named object id.
Named object function std::map.
Asqtad Staggered-Dirac operator.
static multi1d< LatticeColorMatrix > u
push(xml_out,"Condensates")