Skip to content

Commit

Permalink
Fixed compilation error for benchmark_dwf
Browse files Browse the repository at this point in the history
Some parts were assuming floating point precision
  • Loading branch information
Guido Cossu committed Jun 20, 2016
1 parent 87418e7 commit 5e02392
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ stamp-h1
config.sub
config.guess
INSTALL
.dirstamp

# Packages #
############
Expand Down
18 changes: 9 additions & 9 deletions benchmarks/Benchmark_dwf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -165,19 +165,19 @@ int main (int argc, char ** argv)

if (1)
{
typedef WilsonFermion5D<DomainWallRedBlack5dImplF> WilsonFermion5DF;
LatticeFermionF ssrc(sFGrid);
LatticeFermionF sref(sFGrid);
LatticeFermionF sresult(sFGrid);
WilsonFermion5DF sDw(1,Umu,*sFGrid,*sFrbGrid,*sUGrid,M5,params);
typedef WilsonFermion5D<DomainWallRedBlack5dImplR> WilsonFermion5DR;
LatticeFermion ssrc(sFGrid);
LatticeFermion sref(sFGrid);
LatticeFermion sresult(sFGrid);
WilsonFermion5DR sDw(1,Umu,*sFGrid,*sFrbGrid,*sUGrid,M5,params);

for(int x=0;x<latt4[0];x++){
for(int y=0;y<latt4[1];y++){
for(int z=0;z<latt4[2];z++){
for(int t=0;t<latt4[3];t++){
for(int s=0;s<Ls;s++){
std::vector<int> site({s,x,y,z,t});
SpinColourVectorF tmp;
SpinColourVector tmp;
peekSite(tmp,src,site);
pokeSite(tmp,ssrc,site);
}}}}}
Expand Down Expand Up @@ -217,7 +217,7 @@ int main (int argc, char ** argv)
for(int t=0;t<latt4[3];t++){
for(int s=0;s<Ls;s++){
std::vector<int> site({s,x,y,z,t});
SpinColourVectorF normal, simd;
SpinColourVector normal, simd;
peekSite(normal,result,site);
peekSite(simd,sresult,site);
sum=sum+norm2(normal-simd);
Expand All @@ -230,8 +230,8 @@ int main (int argc, char ** argv)

if (1) {

LatticeFermionF sr_eo(sFGrid);
LatticeFermionF serr(sFGrid);
LatticeFermion sr_eo(sFGrid);
LatticeFermion serr(sFGrid);

LatticeFermion ssrc_e (sFrbGrid);
LatticeFermion ssrc_o (sFrbGrid);
Expand Down
Empty file added lib/.dirstamp
Empty file.
Empty file added lib/algorithms/approx/.dirstamp
Empty file.
Empty file added lib/communicator/.dirstamp
Empty file.
Empty file.
Empty file added lib/qcd/hmc/.dirstamp
Empty file.
Empty file added lib/qcd/spin/.dirstamp
Empty file.
Empty file added lib/qcd/utils/.dirstamp
Empty file.
Empty file added lib/stencil/.dirstamp
Empty file.

0 comments on commit 5e02392

Please sign in to comment.