Changing particle size metric to neighcutsq

This commit is contained in:
Joel Clemmer
2020-11-22 20:40:47 -07:00
parent 00a74558ff
commit de5df539c9
6 changed files with 10 additions and 10 deletions

View File

@ -51,7 +51,7 @@ void NStencilFullMulti22d::set_stencil_properties()
stencil_half[i][j] = 0;
stencil_skip[i][j] = 0;
if(cuttypesq[i] <= cuttypesq[j]){
if(cutneighsq[i][i] <= cutneighsq[j][j]){
stencil_cut[i][j] = sqrt(cutneighsq[j][j]);
stencil_bin_type[i][j] = j;
} else {

View File

@ -51,7 +51,7 @@ void NStencilFullMulti23d::set_stencil_properties()
stencil_half[i][j] = 0;
stencil_skip[i][j] = 0;
if(cuttypesq[i] <= cuttypesq[j]){
if(cutneighsq[i][i] <= cutneighsq[j][j]){
stencil_cut[i][j] = sqrt(cutneighsq[j][j]);
stencil_bin_type[i][j] = j;
} else {

View File

@ -49,12 +49,12 @@ void NStencilHalfMulti22d::set_stencil_properties()
for (i = 1; i <= n; i++) {
for (j = 1; j <= n; j++) {
if(i == j) continue;
if(cuttypesq[i] > cuttypesq[j]) continue;
if(cutneighsq[i][i] > cutneighsq[j][j]) continue;
stencil_skip[i][j] = 0;
stencil_cut[i][j] = sqrt(cutneighsq[i][j]);
if(cuttypesq[i] == cuttypesq[j]){
if(cutneighsq[i][i] == cutneighsq[j][j]){
stencil_half[i][j] = 1;
stencil_bin_type[i][j] = i;
} else {

View File

@ -49,12 +49,12 @@ void NStencilHalfMulti22dTri::set_stencil_properties()
for (i = 1; i <= n; i++) {
for (j = 1; j <= n; j++) {
if(i == j) continue;
if(cuttypesq[i] > cuttypesq[j]) continue;
if(cutneighsq[i][i] > cutneighsq[j][j]) continue;
stencil_skip[i][j] = 0;
stencil_cut[i][j] = sqrt(cutneighsq[i][j]);
if(cuttypesq[i] == cuttypesq[j]){
if(cutneighsq[i][i] == cutneighsq[j][j]){
stencil_half[i][j] = 1;
stencil_bin_type[i][j] = i;
} else {

View File

@ -49,12 +49,12 @@ void NStencilHalfMulti23d::set_stencil_properties()
for (i = 1; i <= n; i++) {
for (j = 1; j <= n; j++) {
if(i == j) continue;
if(cuttypesq[i] > cuttypesq[j]) continue;
if(cutneighsq[i][i] > cutneighsq[j][j]) continue;
stencil_skip[i][j] = 0;
stencil_cut[i][j] = sqrt(cutneighsq[i][j]);
if(cuttypesq[i] == cuttypesq[j]){
if(cutneighsq[i][i] == cutneighsq[j][j]){
stencil_half[i][j] = 1;
stencil_bin_type[i][j] = i;
} else {

View File

@ -49,12 +49,12 @@ void NStencilHalfMulti23dTri::set_stencil_properties()
for (i = 1; i <= n; i++) {
for (j = 1; j <= n; j++) {
if(i == j) continue;
if(cuttypesq[i] > cuttypesq[j]) continue;
if(cutneighsq[i][i] > cutneighsq[j][j]) continue;
stencil_skip[i][j] = 0;
stencil_cut[i][j] = sqrt(cutneighsq[i][j]);
if(cuttypesq[i] == cuttypesq[j]){
if(cutneighsq[i][i] == cutneighsq[j][j]){
stencil_half[i][j] = 1;
stencil_bin_type[i][j] = i;
} else {