--- trunk/OOPSE-3.0/src/UseTheForce/EAM_FF.cpp 2005/04/12 14:24:29 2168 +++ trunk/OOPSE-3.0/src/UseTheForce/EAM_FF.cpp 2005/04/12 17:12:27 2169 @@ -40,6 +40,7 @@ */ #include "UseTheForce/EAM_FF.hpp" +#include "UseTheForce/DarkSide/eam_interface.h" #include "UseTheForce/DarkSide/lj_interface.h" #include "UseTheForce/DarkSide/sticky_interface.h" #include "UseTheForce/ForceFieldFactory.hpp" @@ -137,4 +138,9 @@ double EAM_FF::getRcutFromAtomType(AtomType* at){ return rcut; } + EAM_FF::~EAM_FF(){ + // We need to clean up the fortran side so we don't have bad things happen if + // we try to create a second EAM force field. + destroyEAMTypes(); + } } //end namespace oopse