15 namespace InlineQIOWriteNamedObjEnv
76 XMLReader inputtop(xml, path);
85 XMLReader inputtop(xml, path);
89 if (inputtop.count(
"parallel_io") > 0) {
92 input.
parallel_io = Layout::isIOGridDefined() && (Layout::numIONodeGrid() > 1);
105 XMLReader paramtop(xml_in, path);
107 if (paramtop.count(
"Frequency") == 1)
120 QDPIO::cerr << __func__ <<
": caught Exception reading XML: " << e << std::endl;
147 push(xml_out,
"qio_write_named_obj");
148 write(xml_out,
"update_no", update_no);
150 QDPIO::cout <<
name <<
": object writer" << std::endl;
158 QDP_serialparallel_t parallel_io_type = QDPIO_SERIAL;
160 QDPIO::cout <<
"Attempting to write with Parallel IO" << std::endl;
161 parallel_io_type = QDPIO_PARALLEL;
164 QDPIO::cout <<
"Attempting to write without parallel IO" << std::endl;
165 parallel_io_type = QDPIO_SERIAL;
180 QDPIO::cout <<
"Object successfully written: time= "
181 << swatch.getTimeInSeconds()
182 <<
" secs" << std::endl;
184 catch( std::bad_cast )
186 QDPIO::cerr <<
name <<
": cast error"
192 QDPIO::cerr <<
name <<
": error message: " << e
197 QDPIO::cout <<
name <<
": ran successfully" << std::endl;
Inline measurement factory.
Inline writing of memory objects.
void operator()(const unsigned long update_no, XMLWriter &xml_out)
Do the writing.
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams ¶m)
Read parameters.
Inline task to write an object from a named buffer.
Named object function std::map.
static bool registered
Local registration flag.
const std::string name
Name to be used.
void read(XMLReader &xml, const std::string &path, Params::NamedObject_t &input)
Object buffer.
void write(XMLWriter &xml, const std::string &path, const Params::NamedObject_t &input)
Object buffer.
bool registerAll()
Register all the factories.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
push(xml_out,"Condensates")
Write object function std::map.
struct Chroma::InlineQIOWriteNamedObjEnv::Params::File_t file
void writeXML(XMLWriter &xml_out, const std::string &path)
struct Chroma::InlineQIOWriteNamedObjEnv::Params::NamedObject_t named_obj