--- branches/development/src/nonbonded/SC.cpp 2013/02/20 15:39:39 1850 +++ branches/development/src/nonbonded/SC.cpp 2013/04/30 17:03:03 1869 @@ -54,6 +54,14 @@ namespace OpenMD { SC::SC() : name_("SC"), initialized_(false), forceField_(NULL), scRcut_(0.0), np_(3000) {} + SC::~SC() { + initialized_ = false; + + MixingMap.clear(); + SCMap.clear(); + SClist.clear(); + } + RealType SC::getM(AtomType* atomType1, AtomType* atomType2) { SuttonChenAdapter sca1 = SuttonChenAdapter(atomType1); SuttonChenAdapter sca2 = SuttonChenAdapter(atomType2);