Fixing typo in pair gran, fixing bugs in communication and neighbor

This commit is contained in:
Joel Clemmer
2021-02-02 18:05:19 -07:00
parent 852e4efc6f
commit 56841ba912
4 changed files with 12 additions and 4 deletions

View File

@ -735,6 +735,13 @@ double Comm::get_comm_cutoff()
maxcommcutoff));
}
// Check maximum interval size for neighbor multi
if(neighbor->interval_collection_flag){
for(int i = 0; i < neighbor->ncollections; i++){
maxcommcutoff = MAX(maxcommcutoff, neighbor->collection2cut[i]);
}
}
return maxcommcutoff;
}