mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-11 14:40:46 +01:00
Scalar action: const fix
This commit is contained in:
parent
741bc836f6
commit
43c817cc67
@ -88,8 +88,7 @@ namespace Grid {
|
|||||||
int permute_type;
|
int permute_type;
|
||||||
StencilEntry *SE;
|
StencilEntry *SE;
|
||||||
vobj temp2;
|
vobj temp2;
|
||||||
vobj *temp;
|
const vobj *temp, *t_p;
|
||||||
vobj *t_p;
|
|
||||||
|
|
||||||
SE = phiStencil.GetEntry(permute_type, mu, i);
|
SE = phiStencil.GetEntry(permute_type, mu, i);
|
||||||
t_p = &p._odata[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 mu = 0; mu < QCD::Nd; mu++) force -= Cshift(p, mu, -1) + Cshift(p, mu, 1);
|
||||||
for (int point = 0; point < npoint; point++) {
|
for (int point = 0; point < npoint; point++) {
|
||||||
parallel_for (int i = 0; i < p._grid->oSites(); i++) {
|
parallel_for (int i = 0; i < p._grid->oSites(); i++) {
|
||||||
vobj *temp;
|
const vobj *temp;
|
||||||
vobj temp2;
|
vobj temp2;
|
||||||
int permute_type;
|
int permute_type;
|
||||||
StencilEntry *SE;
|
StencilEntry *SE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user