Skip to content
Snippets Groups Projects
Commit 3a6337b2 authored by Carlo Camilloni's avatar Carlo Camilloni
Browse files

CENTER: default weitghts

now set to 1.
Close #86
parent ffe6aca0
No related branches found
No related tags found
No related merge requests found
......@@ -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.
Finish editing this message first!
Please register or to comment