From d921a99b1a02a5bf75d45e73b5549683193f8664 Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Tue, 19 Mar 2019 17:07:40 +0000 Subject: [PATCH] precision fix --- Grid/qcd/action/fermion/FermionOperator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Grid/qcd/action/fermion/FermionOperator.h b/Grid/qcd/action/fermion/FermionOperator.h index 55942dea..20079fc5 100644 --- a/Grid/qcd/action/fermion/FermionOperator.h +++ b/Grid/qcd/action/fermion/FermionOperator.h @@ -113,7 +113,7 @@ 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*(-1.0))*in; + in_buf = exp((Real)(-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);