--- trunk/src/rnemd/RNEMD.cpp 2014/10/22 14:29:20 2027 +++ trunk/src/rnemd/RNEMD.cpp 2015/03/05 15:40:58 2068 @@ -654,13 +654,13 @@ namespace OpenMD { StuntDouble* sd; - RealType min_val; + RealType min_val(0.0); int min_found = 0; - StuntDouble* min_sd; - - RealType max_val; + StuntDouble* min_sd = NULL; + + RealType max_val(0.0); int max_found = 0; - StuntDouble* max_sd; + StuntDouble* max_sd = NULL; for (sd = seleManA_.beginSelected(selei); sd != NULL; sd = seleManA_.nextSelected(selei)) { @@ -1020,7 +1020,6 @@ namespace OpenMD { int selej; Snapshot* currentSnap_ = info_->getSnapshotManager()->getCurrentSnapshot(); - RealType time = currentSnap_->getTime(); Mat3x3d hmat = currentSnap_->getHmat(); StuntDouble* sd; @@ -1468,7 +1467,6 @@ namespace OpenMD { int selej; Snapshot* currentSnap_ = info_->getSnapshotManager()->getCurrentSnapshot(); - RealType time = currentSnap_->getTime(); Mat3x3d hmat = currentSnap_->getHmat(); StuntDouble* sd; @@ -1812,9 +1810,9 @@ namespace OpenMD { } if (hasSelectionB_) { - if (evaluatorB_.hasSurfaceArea()) + if (evaluatorB_.hasSurfaceArea()) { areaB = evaluatorB_.getSurfaceArea(); - else { + } else { int isd; StuntDouble* sd;