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