1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-12 16:55:37 +00:00

Restrict to interior

This commit is contained in:
Peter Boyle 2023-11-23 18:23:29 -05:00
parent a294bc3c5b
commit 3e448435d3

View File

@ -149,6 +149,7 @@ public:
int32_t point= bp/nbasis;
int32_t b = bp%nbasis;
auto SE = Stencil_v.GetEntry(point,ss);
if ( SE->_permute == 0 ) {
int32_t snbr= SE->_offset;
auto nbr = coalescedReadGeneralPermute(in_v[snbr],SE->_permute,Nd);
auto res = Aview_p[point][ss](0,b)*nbr(0);
@ -156,6 +157,7 @@ public:
res = res + Aview_p[point][ss](bb,b)*nbr(bb);
}
coalescedWrite(Vview_p[point][ss](b),res);
}
});
accelerator_for(sb, osites*nbasis, Nsimd, {
int ss = sb/nbasis;