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

better message

parent 6dccea0c
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,8 @@ NeighborList::NeighborList(const vector<AtomNumber>& list0, const vector<AtomNum
if(!do_pair) {
nallpairs_=nlist0_*nlist1_;
} else {
plumed_massert(nlist0_==nlist1_,"when using PAIR option, the two groups should have the same number of elements");
plumed_assert(nlist0_==nlist1_) << "when using PAIR option, the two groups should have the same number of elements\n"
<< "the groups you specified have size "<<nlist0_<<" and "<<nlist1_;
nallpairs_=nlist0_;
}
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