| 68 |  | using namespace std; | 
| 69 |  | namespace OpenMD { | 
| 70 |  |  | 
| 71 | < | ForceManager::ForceManager(SimInfo * info) : info_(info), switcher_(NULL), | 
| 72 | < | initialized_(false) { | 
| 71 | > | ForceManager::ForceManager(SimInfo * info) : initialized_(false), info_(info), | 
| 72 | > | switcher_(NULL) { | 
| 73 |  | forceField_ = info_->getForceField(); | 
| 74 |  | interactionMan_ = new InteractionManager(); | 
| 75 |  | fDecomp_ = new ForceMatrixDecomposition(info_, interactionMan_); | 
| 115 |  | void ForceManager::setupCutoffs() { | 
| 116 |  |  | 
| 117 |  | Globals* simParams_ = info_->getSimParams(); | 
| 118 | – | ForceFieldOptions& forceFieldOptions_ = forceField_->getForceFieldOptions(); | 
| 118 |  | int mdFileVersion; | 
| 119 |  | rCut_ = 0.0; //Needs a value for a later max() call; | 
| 120 |  |  | 
| 625 |  | Snapshot* curSnapshot = info_->getSnapshotManager()->getCurrentSnapshot(); | 
| 626 |  | DataStorage* config = &(curSnapshot->atomData); | 
| 627 |  | DataStorage* cgConfig = &(curSnapshot->cgData); | 
| 629 | – | int jstart, jend; | 
| 628 |  |  | 
| 629 |  | //calculate the center of mass of cutoff group | 
| 630 |  |  | 
| 655 |  | Vector3d d_grp, dag, d, gvel2, vel2; | 
| 656 |  | RealType rgrpsq, rgrp, r2, r; | 
| 657 |  | RealType electroMult, vdwMult; | 
| 658 | < | RealType vij; | 
| 658 | > | RealType vij(0.0); | 
| 659 |  | Vector3d fij, fg, f1; | 
| 662 | – | tuple3<RealType, RealType, RealType> cuts; | 
| 663 | – | RealType rCut, rCutSq, rListSq; | 
| 660 |  | bool in_switching_region; | 
| 661 |  | RealType sw, dswdr, swderiv; | 
| 662 |  | vector<int> atomListColumn, atomListRow; | 
| 721 |  | } | 
| 722 |  | } | 
| 723 |  |  | 
| 724 | < | for (unsigned int cg1 = 0; cg1 < point_.size() - 1; cg1++) { | 
| 724 | > | for (cg1 = 0; cg1 < int(point_.size()) - 1; cg1++) { | 
| 725 |  |  | 
| 726 |  | atomListRow = fDecomp_->getAtomsInGroupRow(cg1); | 
| 727 |  | newAtom1 = true; |