From 43c817cc67c6447bbf69bfc7d7772fba4e7ff9eb Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Thu, 11 May 2017 00:07:17 +0100 Subject: [PATCH] Scalar action: const fix --- lib/qcd/action/scalar/ScalarInteractionAction.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/qcd/action/scalar/ScalarInteractionAction.h b/lib/qcd/action/scalar/ScalarInteractionAction.h index ca8207bd..5f4c630c 100644 --- a/lib/qcd/action/scalar/ScalarInteractionAction.h +++ b/lib/qcd/action/scalar/ScalarInteractionAction.h @@ -88,8 +88,7 @@ namespace Grid { int permute_type; StencilEntry *SE; vobj temp2; - vobj *temp; - vobj *t_p; + const vobj *temp, *t_p; SE = phiStencil.GetEntry(permute_type, mu, i); t_p = &p._odata[i]; @@ -122,7 +121,7 @@ namespace Grid { //for (int mu = 0; mu < QCD::Nd; mu++) force -= Cshift(p, mu, -1) + Cshift(p, mu, 1); for (int point = 0; point < npoint; point++) { parallel_for (int i = 0; i < p._grid->oSites(); i++) { - vobj *temp; + const vobj *temp; vobj temp2; int permute_type; StencilEntry *SE;