22 BinaryFileReader prop_in(file);
24 int x,
y,
z,
t, src_col, snk_col, src_spin, snk_spin,
index;
28 const multi1d<int>& latt_size = Layout::lattSize();
31 multi1d<Real64> buf( latt_size[0]*Nc*Nc*2 );
35 for(
t = 0;
t < latt_size[3];
t++) {
36 QDPIO::cout <<
"Reading timeslice: " <<
t << std::endl;
38 for(
z = 0;
z < latt_size[2];
z++) {
39 for(
y = 0;
y < latt_size[1];
y++ ) {
43 read(prop_in, buf, latt_size[0]*Nc*Nc*2);
46 QDPUtil::byte_swap((
void *)&buf[0],
sizeof(Real64), latt_size[0]*Nc*Nc*2 );
50 for(
x = 0;
x < latt_size[0];
x++) {
57 for( snk_spin = 0; snk_spin < Ns; snk_spin++) {
58 for( src_spin = 0; src_spin < Ns; src_spin++) {
62 for( snk_col = 0; snk_col < Nc; snk_col++) {
63 for( src_col = 0; src_col < Nc; src_col++) {
67 re = (Real32)(buf[
index]);
69 im = (Real32)(buf[
index]);
72 tmp_cmpx = cmplx(Real(re), Real(im));
74 tmp_col = pokeColor(tmp_col,
81 site_prop = pokeSpin(site_prop,
Primary include file for CHROMA library code.
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams ¶m)
Read parameters.
multi1d< int > coords(const int x, const int y, const int z, const int t)
Asqtad Staggered-Dirac operator.
void readQpropFollana(char file[], LatticePropagator &quark_prop, bool swap)