16 int a = n < 0 ? nslabs : 0;
17 int b = n >= nslabs ? nslabs : 0;
23 int atype1,
int atype2,
int numtypes,
27 int slaboffset = atype1*numtypes + atype2;
28 reduction += slaboffset * 3*nslabs;
33 reduction[3*n1 ] += vxx;
34 reduction[3*n1+1] += vyy;
35 reduction[3*n1+2] += vzz;
36 reduction[3*n2 ] += vxx;
37 reduction[3*n2+1] += vyy;
38 reduction[3*n2+2] += vzz;
void pp_reduction(int nslabs, int n1, int n2, int atype1, int atype2, int numtypes, BigReal vxx, BigReal vyy, BigReal vzz, BigReal *reduction)
void pp_clamp(int &n, int nslabs)