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

fixed warning

parent 248e13db
No related branches found
No related tags found
No related merge requests found
......@@ -324,7 +324,7 @@ void Plumed::prepare() {
bool redo=(index.size()!=n);
if(first) redo=true;
first=false;
if(!redo) for(int i=0; i<n; i++) if(index[i]!=pointer[i]) { redo=true; break;};
if(root && !redo) for(int i=0; i<n; i++) if(index[i]!=pointer[i]) { redo=true; break;};
if(root && redo) {
index.resize(n);
masses.resize(n);
......
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