Skip to content
Snippets Groups Projects
Commit efe6dec3 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Added error message

parent 6b598e34
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ NeighborList::NeighborList(const vector<AtomNumber>& list0, const vector<AtomNum ...@@ -45,7 +45,7 @@ NeighborList::NeighborList(const vector<AtomNumber>& list0, const vector<AtomNum
if(!do_pair) { if(!do_pair) {
nallpairs_=nlist0_*nlist1_; nallpairs_=nlist0_*nlist1_;
} else { } else {
plumed_assert(nlist0_==nlist1_); plumed_massert(nlist0_==nlist1_,"when using PAIR option, the two groups should have the same number of elements");
nallpairs_=nlist0_; nallpairs_=nlist0_;
} }
initialize(); initialize();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment