Skip to content

Commit

Permalink
commenting center lime in master
Browse files Browse the repository at this point in the history
  • Loading branch information
Iximiel committed Dec 18, 2023
1 parent 20edeab commit 03a6131
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/vatom/Center.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,13 @@ void Center::calculate() {
}
double mass(0.0);
for(unsigned i=0; i<getNumberOfAtoms(); i++) mass+=getMass(i);
if( chargesWereSet && !isChargeSet_) {
double charge(0.0);
for(unsigned i=0; i<getNumberOfAtoms(); i++) charge+=getCharge(i);
setCharge(charge);
} else if( !isChargeSet_ ) {
setCharge(0.0);
}
// if( chargesWereSet && !isChargeSet_) {
// double charge(0.0);
// for(unsigned i=0; i<getNumberOfAtoms(); i++) charge+=getCharge(i);
// setCharge(charge);
// } else if( !isChargeSet_ ) {
// setCharge(0.0);
// }
if(!isMassSet_) setMass(mass);

if( weight_mass ) {
Expand Down

0 comments on commit 03a6131

Please sign in to comment.