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

plumed_massert() -> error()

parent 1ce67684
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ void ActionAtomistic::requestAtoms(const vector<AtomNumber> & a){
clearDependencies();
unique.clear();
for(unsigned i=0;i<indexes.size();i++){
plumed_massert(indexes[i].index()<n,"atom out of range");
if(indexes[i].index()>=n) error("atom out of range");
if(atoms.isVirtualAtom(indexes[i])) addDependency(atoms.getVirtualAtomsAction(indexes[i]));
// only real atoms are requested to lower level Atoms class
else unique.insert(indexes[i]);
......
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