30 namespace SZINQIOGaugeInitEnv
63 XMLReader paramtop(xml, path);
71 bool pario = Layout::isIOGridDefined() && ( Layout::numIONodeGrid() > 1 );
74 if ( paramtop.count(
"parallel_io") > 0 ) {
75 read(paramtop,
"parallel_io", pario);
78 if ( paramtop.count(
"ParallelIO") > 0 ) {
79 read(paramtop,
"ParallelIO", pario);
83 if ( paramtop.count(
"reunit") > 0 ) {
115 write(xml,
"parallel_io", pario);
127 XMLBufferWriter xml_tmp;
129 foo.
xml = xml_tmp.printCurrentContext();
140 XMLReader& gauge_xml,
141 multi1d<LatticeColorMatrix>&
u)
const
145 QDPIO::cout <<
"Parallel IO read" << std::endl;
149 QDPIO::cout <<
"Reunitarizing After read" << std::endl;
156 QDPIO::cout <<
"Reunitarize reported " <<
numbad <<
" unitarity violations" << std::endl;
Base class for gauge initialization.
void operator()(XMLReader &gauge_file_xml, XMLReader &gauge_xml, multi1d< LatticeColorMatrix > &u) const
Initialize the gauge field.
All gauge field initializers.
Factory for producing gauge initializer objects.
Gauge reader/writers in QIO format.
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams ¶m)
Read parameters.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams ¶m)
Writer parameters.
void readGauge(XMLReader &file_xml, XMLReader &record_xml, multi1d< LatticeColorMatrix > &u, const std::string &file, QDP_serialparallel_t serpar)
Read a gauge config in QIO format.
const std::string name
Name to be used.
const std::string alternate_name
GaugeInit * createSource(XMLReader &xml_in, const std::string &path)
Callback function.
static bool registered
Local registration flag.
GroupXML_t createXMLGroup(const Params &p)
Returns a link smearing group with these params.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
static multi1d< LatticeColorMatrix > u
push(xml_out,"Condensates")
void reunit(LatticeColorMatrixF3 &xa)
Reunitarize in place a color matrix to SU(N)
Hold group xml and type id.
Params for initializing config.
void writeXML(XMLWriter &in, const std::string &path) const
Parameters for running code.
QDP_serialparallel_t cfg_pario