Explicitly defining default ncollections

This commit is contained in:
Joel Clemmer
2021-05-12 08:17:14 -06:00
parent 6b45f9052f
commit 7f94712839
2 changed files with 5 additions and 2 deletions

View File

@ -303,6 +303,7 @@ void Comm::modify_params(int narg, char **arg)
if (mode == Comm::MULTIOLD) cutghostuser = 0.0;
memory->destroy(cutusermultiold);
mode = Comm::MULTI;
ncollections_cutoff = 0;
} else if (strcmp(arg[iarg+1],"multi/old") == 0) {
if (neighbor->style == Neighbor::MULTI)
error->all(FLERR,"Cannot use comm mode 'multi/old' with 'multi' style neighbor lists");