31 int NT = Layout::lattSize()[3];
32 int NZ = Layout::lattSize()[2];
33 int NY = Layout::lattSize()[1];
34 int NX = Layout::lattSize()[0];
36 BinaryFileReader cfg_in(cfg_file) ;
47 QDPIO::cout <<
"nxw " << nxw <<std::endl;
48 QDPIO::cout <<
"readWupp: lattice dimension invalid" << std::endl;
49 QDPIO::cout <<
"Trying byte reversal" << std::endl;
50 QDPUtil::byte_swap((
void *)&nxw,
sizeof(
int), 1 );
53 QDPIO::cout <<
"NX: " << nxw << std::endl;
62 QDPIO::cout<<
"Doing bytereversal on the links...\n" ;
63 QDPUtil::byte_swap((
void *)&nyw,
sizeof(
int), 1 );
64 QDPUtil::byte_swap((
void *)&nzw,
sizeof(
int), 1 );
65 QDPUtil::byte_swap((
void *)&ntw,
sizeof(
int), 1 );
66 QDPIO::cout <<
" Ny Nz Nt " << nyw <<
" " << nzw <<
" " <<ntw <<std::endl;
70 fprintf(stderr,
"readWupp: NT mismatch %d %d\n",NT,ntw) ;
73 fprintf(stderr,
"readWupp: NY mismatch %d %d\n",NY,nyw) ;
76 fprintf(stderr,
"readWupp: NZ mismatch %d %d\n",NZ,nzw) ;
90 QDPIO::cout<<
"Reading the gauge fields...\n" ;
91 for(
int site=0; site < Layout::vol(); ++site)
93 multi1d<int>
coord = crtesn(site, Layout::lattSize());
99 QDPUtil::byte_swap((
void *)&uuF.elem(),
sizeof(
float),2*Nc*Nc);
145 XMLBufferWriter xml_buf;
158 QDPIO::cerr << __func__ <<
": Error in readwupp: " << e.c_str() << std::endl;
Primary include file for CHROMA library code.
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 readWupp(multi1d< LatticeColorMatrix > &u, const std::string &cfg_file)
Read a WUPP configuration file.
Asqtad Staggered-Dirac operator.
QDP_error_exit("too many BiCG iterations", n_count, rsd_sq, cp, c, re_rvr, im_rvr, re_a, im_a, re_b, im_b)
static multi1d< LatticeColorMatrix > u
Read in a configuration written by Wupp up to configuration version 7.