| # | Line 51 | Line 51 | namespace OpenMD { | |
|---|---|---|
| 51 | ||
| 52 | FluctuatingChargeConstraints::FluctuatingChargeConstraints(SimInfo* info) : | |
| 53 | info_(info), constrainRegions_(false), hasFlucQ_(false), initialized_(false) { | |
| 54 | – | |
| 54 | } | |
| 55 | ||
| 56 | void FluctuatingChargeConstraints::initialize(){ | |
| # | Line 100 | Line 99 | namespace OpenMD { | |
| 99 | void FluctuatingChargeConstraints::applyConstraints() { | |
| 100 | if (!initialized_) initialize(); | |
| 101 | if (!hasFlucQ_) return; | |
| 102 | + | |
| 103 | SimInfo::MoleculeIterator i; | |
| 104 | Molecule::FluctuatingChargeIterator j; | |
| 105 | Molecule* mol; | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |