Updating examples, updating multi in info, fixing memory issues in comm/neighbor

This commit is contained in:
Joel Clemmer
2021-02-08 10:50:57 -07:00
parent de1205c5a9
commit 58e4938b0f
5 changed files with 60 additions and 8 deletions

View File

@ -366,7 +366,8 @@ void Neighbor::init()
if(not custom_collection_flag) {
ncollections = n;
interval_collection_flag = 0;
memory->create(type2collection,n+1,"neigh:type2collection");
if(not type2collection)
memory->create(type2collection,n+1,"neigh:type2collection");
for(i = 1; i <= n; i++)
type2collection[i] = i-1;
}