USER-DPD: Save pointer to the NPair used to create the NeighList

Gives a user of NeighList access to data stored in a custom NPair
This commit is contained in:
Tim Mattox
2017-02-07 12:53:45 -05:00
parent 52aaad907f
commit 151b3f552b
3 changed files with 3 additions and 1 deletions

View File

@ -785,7 +785,7 @@ int Neighbor::init_pair()
}
PairCreator pair_creator = pairclass[flag-1];
neigh_pair[i] = pair_creator(lmp);
lists[i]->np = neigh_pair[i] = pair_creator(lmp);
neigh_pair[i]->post_constructor(requests[i]);
neigh_pair[i]->istyle = flag;