Skip to content
Snippets Groups Projects
Commit 527bb40b authored by Gareth Tribello's avatar Gareth Tribello
Browse files

Fixed small bug in PAMM weights

parent 5bcfbb6b
No related branches found
No related tags found
No related merge requests found
......@@ -188,7 +188,7 @@ void PAMM::calculateWeight( multicolvar::AtomValuePack& myatoms ){
// Weight of point is average of weights of input colvars?
std::vector<double> tval(2); double ww=0;
for(unsigned i=0;i<nvars;++i){
getVectorForTask( myatoms.getIndex(i), false, tval ); ww+=tval[i];
getVectorForTask( myatoms.getIndex(i), false, tval ); ww+=tval[0];
}
myatoms.setValue( 0, ww / static_cast<double>( nvars ) );
......
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