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

Merge branch 'v2.0'

parents ea2af35d a1ceb0f7
No related branches found
No related tags found
No related merge requests found
......@@ -106,6 +106,7 @@ See <a href="http://github.com/plumed/plumed2/tree/v2.0">branch v2.0 on git repo
For users:
- Now compiles on Blue Gene Q with IBM compilers.
- Fixed bug in \ref CENTER where default WEIGHTS were missing.
- Several small fixes in documentation and log file.
For developers:
......
......@@ -90,6 +90,10 @@ Center::Center(const ActionOptions&ao):
parseAtomList("ATOMS",atoms);
if(atoms.size()==0) error("at least one atom should be specified");
parseVector("WEIGHTS",weights);
if( weights.size()==0) {
weights.resize( atoms.size() );
for(unsigned i=0;i<atoms.size();i++) weights[i] = 1.;
}
parseFlag("MASS",weight_mass);
checkRead();
log.printf(" of atoms");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment