From f0c2108acfceb636c9579999b9716fa7b9cfc755 Mon Sep 17 00:00:00 2001 From: Michael Marshall <43034299+mmphys@users.noreply.github.com> Date: Fri, 22 Mar 2019 12:59:14 +0000 Subject: [PATCH] Pushed paboyle's changes: Updates for clang happy --- Grid/qcd/action/fermion/DomainWallFermion.h | 4 ++-- Grid/qcd/action/fermion/FermionOperator.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Grid/qcd/action/fermion/DomainWallFermion.h b/Grid/qcd/action/fermion/DomainWallFermion.h index 9f5fa696..4de9ccf0 100644 --- a/Grid/qcd/action/fermion/DomainWallFermion.h +++ b/Grid/qcd/action/fermion/DomainWallFermion.h @@ -63,7 +63,7 @@ namespace Grid { LatticeCoordinate(coor, nu + shift); ph = ph + twist[nu]*coor*((1./(in._grid->_fdimensions[nu+shift]))); } - in_buf = exp((Real)(2.0*M_PI)*ci*ph*(-1.0))*in; + in_buf = exp(Scalar(2.0*M_PI)*ci*ph*(-1.0))*in; if(fiveD){//FFT only on temporal and spatial dimensions std::vector mask(Nd+1,1); mask[0] = 0; @@ -78,7 +78,7 @@ namespace Grid { } //phase for boundary condition - out = out * exp((Real)(2.0*M_PI)*ci*ph); + out = out * exp(Scalar(2.0*M_PI)*ci*ph); }; virtual void FreePropagator(const FermionField &in,FermionField &out,RealD mass,std::vector twist) { diff --git a/Grid/qcd/action/fermion/FermionOperator.h b/Grid/qcd/action/fermion/FermionOperator.h index e7d48aa5..436808e6 100644 --- a/Grid/qcd/action/fermion/FermionOperator.h +++ b/Grid/qcd/action/fermion/FermionOperator.h @@ -113,14 +113,14 @@ namespace Grid { LatticeCoordinate(coor, nu); ph = ph + twist[nu]*coor*((1./(in._grid->_fdimensions[nu]))); } - in_buf = exp((Real)(-2.0*M_PI)*ci*ph)*in; + in_buf = exp(Scalar(-2.0*M_PI)*ci*ph)*in; theFFT.FFT_all_dim(in_k,in_buf,FFT::forward); this->MomentumSpacePropagator(prop_k,in_k,mass,twist); theFFT.FFT_all_dim(out,prop_k,FFT::backward); //phase for boundary condition - out = out * exp((Real)(2.0*M_PI)*ci*ph); + out = out * exp(Scalar(2.0*M_PI)*ci*ph); }; virtual void FreePropagator(const FermionField &in,FermionField &out,RealD mass) {