23 BinaryFileReader cfg_in(file);
26 multi1d<DFermion> sitebuf_prec(Layout::vol());
27 multi1d<Fermion> sitebuf(Layout::vol());
29 read(cfg_in, sitebuf_prec, Layout::vol());
36 for(
int site=0; site < Layout::vol(); site++) {
37 DFermion site_tmp_d = sitebuf_prec[site];
40 for(
int spin=0; spin < Ns; spin++) {
41 DColorVector d_col_vec;
44 d_col_vec = peekSpin(site_tmp_d, spin);
45 for(
int color=0; color < Nc; color++) {
46 DComplex elem = peekColor(d_col_vec, color);
47 Double elem_re = real(elem);
48 Double elem_im = imag(elem);
50 Complex elem_r = cmplx(Real(elem_re), Real(elem_im));
51 pokeColor(col_vec, elem_r, color);
53 pokeSpin(site_tmp_r, col_vec, spin);
55 sitebuf[site] = site_tmp_r;
58 sitebuf_prec.resize(0);
61 multi1d<int> lattsize_cb = Layout::lattSize();
65 for(
int cb=0;
cb < 2; ++
cb)
67 for(
int sitecb=0; sitecb < Layout::vol()/2; ++sitecb)
69 multi1d<int>
coord = crtesn(sitecb, lattsize_cb);
73 for(
int m=1;
m<
Nd;
m++) {
Primary include file for CHROMA library code.
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams ¶m)
Read parameters.
void readSzinFerm(LatticeFermion &q, const std::string &file)
Read a SZIN fermion. This is a simple memory dump reader.
Asqtad Staggered-Dirac operator.
FloatingPoint< double > Double
Read an old SZIN-style (checkerboarded) lattice Dirac fermion.