From be3f4ce201891b535f4314807f6761abc975bb1d Mon Sep 17 00:00:00 2001 From: Azusa Yamaguchi Date: Sun, 14 Jun 2015 01:06:56 +0100 Subject: [PATCH] Cosmetic --- lib/lattice/Lattice_base.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/lib/lattice/Lattice_base.h b/lib/lattice/Lattice_base.h index 5a17826b..cd2fa855 100644 --- a/lib/lattice/Lattice_base.h +++ b/lib/lattice/Lattice_base.h @@ -93,7 +93,7 @@ PARALLEL_FOR_LOOP } return *this; } - template strong_inline Lattice & operator=(const LatticeBinaryExpression &expr) + template strong_inline Lattice & operator=(const LatticeBinaryExpression &expr) { GridBase *egrid(nullptr); GridFromExpression(egrid,expr); @@ -131,8 +131,8 @@ PARALLEL_FOR_LOOP PARALLEL_FOR_LOOP for(int ss=0;ss<_grid->oSites();ss++){ #ifdef STREAMING_STORES - vobj tmp = eval(ss,expr); - vstream(_odata[ss] ,tmp); + //vobj tmp = eval(ss,expr); + vstream(_odata[ss] ,eval(ss,expr)); #else _odata[ss] = eval(ss,expr); #endif @@ -196,12 +196,7 @@ PARALLEL_FOR_LOOP _odata.resize(_grid->oSites()); PARALLEL_FOR_LOOP for(int ss=0;ss<_grid->oSites();ss++){ -#ifdef STREAMING_STORES - vobj tmp = eval(ss,expr); - vstream(_odata[ss] ,tmp); -#else _odata[ss]=eval(ss,expr); -#endif } }; @@ -254,7 +249,7 @@ PARALLEL_FOR_LOOP Lattice ret(lhs._grid); PARALLEL_FOR_LOOP for(int ss=0;ssoSites();ss++){ - ret._odata[ss] = lhs._odata[ss]/rhs._odata[ss]; + ret._odata[ss] = lhs._odata[ss]*pow(rhs._odata[ss],-1.0); } return ret; };