--- branches/development/src/nonbonded/EAM.cpp 2010/07/26 19:00:48 1479 +++ trunk/src/nonbonded/EAM.cpp 2015/03/07 21:41:51 2071 @@ -35,8 +35,9 @@ * * [1] Meineke, et al., J. Comp. Chem. 26, 252-271 (2005). * [2] Fennell & Gezelter, J. Chem. Phys. 124, 234104 (2006). - * [3] Sun, Lin & Gezelter, J. Chem. Phys. 128, 24107 (2008). - * [4] Vardeman & Gezelter, in progress (2009). + * [3] Sun, Lin & Gezelter, J. Chem. Phys. 128, 234107 (2008). + * [4] Kuang & Gezelter, J. Chem. Phys. 133, 164101 (2010). + * [5] Vardeman, Stocker & Gezelter, J. Chem. Theory Comput. 7, 834 (2011). */ #include @@ -50,128 +51,41 @@ namespace OpenMD { namespace OpenMD { - bool EAM::initialized_ = false; - RealType EAM::eamRcut_ = 0.0; - EAMMixingMethod EAM::mixMeth_ = eamJohnson; - ForceField* EAM::forceField_ = NULL; - std::map EAM::EAMlist; - std::map EAM::EAMMap; - std::map, EAMInteractionData> EAM::MixingMap; - + EAM::EAM() : initialized_(false), haveCutoffRadius_(false), + forceField_(NULL), eamRcut_(0.0), mixMeth_(eamJohnson), + name_("EAM") {} - EAM* EAM::_instance = NULL; + CubicSpline* EAM::getPhi(AtomType* atomType1, AtomType* atomType2) { + EAMAdapter ea1 = EAMAdapter(atomType1); + EAMAdapter ea2 = EAMAdapter(atomType2); + CubicSpline* z1 = ea1.getZ(); + CubicSpline* z2 = ea2.getZ(); - EAM* EAM::Instance() { - if (!_instance) { - _instance = new EAM(); - } - return _instance; - } - - EAMParam EAM::getEAMParam(AtomType* atomType) { - - // Do sanity checking on the AtomType we were passed before - // building any data structures: - if (!atomType->isEAM()) { - sprintf( painCave.errMsg, - "EAM::getEAMParam was passed an atomType (%s) that does not\n" - "\tappear to be an embedded atom method (EAM) atom.\n", - atomType->getName().c_str()); - painCave.severity = OPENMD_ERROR; - painCave.isFatal = 1; - simError(); - } - - GenericData* data = atomType->getPropertyByName("EAM"); - if (data == NULL) { - sprintf( painCave.errMsg, "EAM::getEAMParam could not find EAM\n" - "\tparameters for atomType %s.\n", - atomType->getName().c_str()); - painCave.severity = OPENMD_ERROR; - painCave.isFatal = 1; - simError(); - } - - EAMParamGenericData* eamData = dynamic_cast(data); - if (eamData == NULL) { - sprintf( painCave.errMsg, - "EAM::getEAMParam could not convert GenericData to EAMParam for\n" - "\tatom type %s\n", atomType->getName().c_str()); - painCave.severity = OPENMD_ERROR; - painCave.isFatal = 1; - simError(); - } - - return eamData->getData(); - } + // Thise prefactors convert the charge-charge interactions into + // kcal / mol all were computed assuming distances are measured in + // angstroms Charge-Charge, assuming charges are measured in + // electrons. Matches value in Electrostatics.cpp + pre11_ = 332.0637778; - CubicSpline* EAM::getZ(AtomType* atomType) { - EAMParam eamParam = getEAMParam(atomType); - int nr = eamParam.nr; - RealType dr = eamParam.dr; - vector rvals; - - for (int i = 0; i < nr; i++) rvals.push_back(i * dr); - - CubicSpline* cs = new CubicSpline(); - cs->addPoints(rvals, eamParam.Z); - return cs; - } + // make the r grid: - RealType EAM::getRcut(AtomType* atomType) { - EAMParam eamParam = getEAMParam(atomType); - return eamParam.rcut; - } - - CubicSpline* EAM::getRho(AtomType* atomType) { - EAMParam eamParam = getEAMParam(atomType); - int nr = eamParam.nr; - RealType dr = eamParam.dr; - vector rvals; + // we need phi out to the largest value we'll encounter in the radial space; - for (int i = 0; i < nr; i++) rvals.push_back(i * dr); - - CubicSpline* cs = new CubicSpline(); - cs->addPoints(rvals, eamParam.rho); - return cs; - } + RealType rmax = 0.0; + rmax = max(rmax, ea1.getRcut()); + rmax = max(rmax, ea1.getNr() * ea1.getDr()); - CubicSpline* EAM::getF(AtomType* atomType) { - EAMParam eamParam = getEAMParam(atomType); - int nrho = eamParam.nrho; - RealType drho = eamParam.drho; - vector rhovals; - vector scaledF; - - for (int i = 0; i < nrho; i++) { - rhovals.push_back(i * drho); - scaledF.push_back( eamParam.F[i] * 23.06054 ); - } - - CubicSpline* cs = new CubicSpline(); - cs->addPoints(rhovals, eamParam.F); - return cs; - } - - CubicSpline* EAM::getPhi(AtomType* atomType1, AtomType* atomType2) { - EAMParam eamParam1 = getEAMParam(atomType1); - EAMParam eamParam2 = getEAMParam(atomType2); - CubicSpline* z1 = getZ(atomType1); - CubicSpline* z2 = getZ(atomType2); + rmax = max(rmax, ea2.getRcut()); + rmax = max(rmax, ea2.getNr() * ea2.getDr()); - // make the r grid: + // use the smallest dr (finest grid) to build our grid: - // set rcut to be the smaller of the two atomic rcuts + RealType dr = min(ea1.getDr(), ea2.getDr()); - RealType rcut = eamParam1.rcut < eamParam2.rcut ? - eamParam1.rcut : eamParam2.rcut; + int nr = int(rmax/dr + 0.5); - // use the smallest dr (finest grid) to build our grid: - - RealType dr = eamParam1.dr < eamParam2.dr ? eamParam1.dr : eamParam2.dr; - int nr = int(rcut/dr); vector rvals; - for (int i = 0; i < nr; i++) rvals.push_back(i*dr); + for (int i = 0; i < nr; i++) rvals.push_back(RealType(i*dr)); // construct the pair potential: @@ -182,26 +96,37 @@ namespace OpenMD { phivals.push_back(0.0); - for (int i = 1; i < rvals.size(); i++ ) { + for (unsigned int i = 1; i < rvals.size(); i++ ) { r = rvals[i]; - zi = z1->getValueAt(r); - zj = z2->getValueAt(r); - phi = 331.999296 * (zi * zj) / r; + // only use z(r) if we're inside this atom's cutoff radius, + // otherwise, we'll use zero for the charge. This effectively + // means that our phi grid goes out beyond the cutoff of the + // pair potential + + zi = r <= ea1.getRcut() ? z1->getValueAt(r) : 0.0; + zj = r <= ea2.getRcut() ? z2->getValueAt(r) : 0.0; + + phi = pre11_ * (zi * zj) / r; + phivals.push_back(phi); } - CubicSpline* cs = new CubicSpline(); cs->addPoints(rvals, phivals); return cs; } - void EAM::initialize() { + void EAM::setCutoffRadius( RealType rCut ) { + eamRcut_ = rCut; + haveCutoffRadius_ = true; + } + void EAM::initialize() { // set up the mixing method: ForceFieldOptions& fopts = forceField_->getForceFieldOptions(); - string EAMMixMeth = toUpperCopy(fopts.getEAMMixingMethod()); - + string EAMMixMeth = fopts.getEAMMixingMethod(); + toUpper(EAMMixMeth); + if (EAMMixMeth == "JOHNSON") mixMeth_ = eamJohnson; else if (EAMMixMeth == "DAW") @@ -210,16 +135,24 @@ namespace OpenMD { mixMeth_ = eamUnknown; // find all of the EAM atom Types: - ForceField::AtomTypeContainer* atomTypes = forceField_->getAtomTypes(); - ForceField::AtomTypeContainer::MapTypeIterator i; - AtomType* at; + EAMtypes.clear(); + EAMtids.clear(); + EAMdata.clear(); + MixingMap.clear(); + nEAM_ = 0; + + EAMtids.resize( forceField_->getNAtomType(), -1); - for (at = atomTypes->beginType(i); at != NULL; - at = atomTypes->nextType(i)) { - - if (at->isEAM()) - addType(at); + set::iterator at; + for (at = simTypes_.begin(); at != simTypes_.end(); ++at) { + if ((*at)->isEAM()) nEAM_++; } + EAMdata.resize(nEAM_); + MixingMap.resize(nEAM_); + + for (at = simTypes_.begin(); at != simTypes_.end(); ++at) { + if ((*at)->isEAM()) addType(*at); + } // find all of the explicit EAM interactions (setfl): ForceField::NonBondedInteractionTypeContainer* nbiTypes = forceField_->getNonBondedInteractionTypes(); @@ -231,7 +164,7 @@ namespace OpenMD { if (nbt->isEAM()) { - std::pair atypes = nbt->getAtomTypes(); + pair atypes = nbt->getAtomTypes(); GenericData* data = nbt->getPropertyByName("EAM"); if (data == NULL) { @@ -272,47 +205,52 @@ namespace OpenMD { void EAM::addType(AtomType* atomType){ + EAMAdapter ea = EAMAdapter(atomType); EAMAtomData eamAtomData; - - eamAtomData.rho = getRho(atomType); - eamAtomData.F = getF(atomType); - eamAtomData.Z = getZ(atomType); - eamAtomData.rcut = getRcut(atomType); + eamAtomData.rho = ea.getRho(); + eamAtomData.F = ea.getF(); + eamAtomData.Z = ea.getZ(); + eamAtomData.rcut = ea.getRcut(); + // add it to the map: - AtomTypeProperties atp = atomType->getATP(); + int atid = atomType->getIdent(); + int eamtid = EAMtypes.size(); - std::pair::iterator,bool> ret; - ret = EAMlist.insert( std::pair(atp.ident, atomType) ); + pair::iterator,bool> ret; + ret = EAMtypes.insert( atid ); if (ret.second == false) { sprintf( painCave.errMsg, "EAM already had a previous entry with ident %d\n", - atp.ident); + atid); painCave.severity = OPENMD_INFO; painCave.isFatal = 0; simError(); } - EAMMap[atomType] = eamAtomData; + + EAMtids[atid] = eamtid; + EAMdata[eamtid] = eamAtomData; + MixingMap[eamtid].resize(nEAM_); // Now, iterate over all known types and add to the mixing map: - std::map::iterator it; - for( it = EAMMap.begin(); it != EAMMap.end(); ++it) { + std::set::iterator it; + for( it = EAMtypes.begin(); it != EAMtypes.end(); ++it) { - AtomType* atype2 = (*it).first; + int eamtid2 = EAMtids[ (*it) ]; + AtomType* atype2 = forceField_->getAtomType( (*it) ); EAMInteractionData mixer; mixer.phi = getPhi(atomType, atype2); + mixer.rcut = mixer.phi->getLimits().second; mixer.explicitlySet = false; - std::pair key1, key2; - key1 = std::make_pair(atomType, atype2); - key2 = std::make_pair(atype2, atomType); + MixingMap[eamtid2].resize( nEAM_ ); - MixingMap[key1] = mixer; - if (key2 != key1) { - MixingMap[key2] = mixer; + MixingMap[eamtid][eamtid2] = mixer; + if (eamtid2 != eamtid) { + MixingMap[eamtid2][eamtid] = mixer; } } return; @@ -334,266 +272,175 @@ namespace OpenMD { cs->addPoints(rVals, phiVals); mixer.phi = cs; + mixer.rcut = mixer.phi->getLimits().second; mixer.explicitlySet = true; - std::pair key1, key2; - key1 = std::make_pair(atype1, atype2); - key2 = std::make_pair(atype2, atype1); + int eamtid1 = EAMtids[ atype1->getIdent() ]; + int eamtid2 = EAMtids[ atype2->getIdent() ]; - MixingMap[key1] = mixer; - if (key2 != key1) { - MixingMap[key2] = mixer; + MixingMap[eamtid1][eamtid2] = mixer; + if (eamtid2 != eamtid1) { + MixingMap[eamtid2][eamtid1] = mixer; } return; } - void EAM::calcDensity(AtomType* at1, AtomType* at2, const RealType rij, - RealType &rho_i_at_j, RealType &rho_j_at_i) { + void EAM::calcDensity(InteractionData &idat) { if (!initialized_) initialize(); - EAMAtomData data1 = EAMMap[at1]; - EAMAtomData data2 = EAMMap[at2]; + EAMAtomData &data1 = EAMdata[EAMtids[idat.atid1]]; + EAMAtomData &data2 = EAMdata[EAMtids[idat.atid2]]; - if (rij < data1.rcut) rho_i_at_j = data1.rho->getValueAt(rij); - if (rij < data2.rcut) rho_j_at_i = data2.rho->getValueAt(rij); - return; - } - - void EAM::calcFunctional(AtomType* at1, RealType rho, RealType &frho, - RealType &dfrhodrho) { - - if (!initialized_) initialize(); - - EAMAtomData data1 = EAMMap[at1]; - - pair result = data1.F->getValueAndDerivativeAt(rho); - - frho = result.first; - dfrhodrho = result.second; - return; - } - - - void EAM::calcForce(AtomType* at1, AtomType* at2, Vector3d d, - RealType rij, RealType r2, RealType sw, - RealType &vpair, RealType &pot, Vector3d &f1, - RealType rho_i, RealType rho_j, - RealType dfrhodrho_i, RealType dfrhodrho_j, - RealType &fshift_i, RealType &fshift_j) { - - if (!initialized_) initialize(); + if (haveCutoffRadius_) + if ( *(idat.rij) > eamRcut_) return; - pair res; - - if (rij < eamRcut_) { - - EAMAtomData data1 = EAMMap[at1]; - EAMAtomData data2 = EAMMap[at2]; - - // get type-specific cutoff radii - - RealType rci = data1.rcut; - RealType rcj = data2.rcut; + if ( *(idat.rij) < data1.rcut) { + *(idat.rho2) += data1.rho->getValueAt( *(idat.rij)); + } - RealType rha, drha, rhb, drhb; - RealType pha, dpha, phb, dphb; - RealType phab, dvpdr; - RealType drhoidr, drhojdr, dudr; - - if (rij < rci) { - res = data1.rho->getValueAndDerivativeAt(rij); - rha = res.first; - drha = res.second; - - res = MixingMap[make_pair(at1, at1)].phi->getValueAndDerivativeAt(rij); - pha = res.first; - dpha = res.second; - } - - if (rij < rcj) { - res = data2.rho->getValueAndDerivativeAt(rij); - rhb = res.first; - drhb = res.second; - - res = MixingMap[make_pair(at2, at2)].phi->getValueAndDerivativeAt(rij); - phb = res.first; - dphb = res.second; - } - - phab = 0.0; - dvpdr = 0.0; - - switch(mixMeth_) { - case eamJohnson: - - if (rij < rci) { - phab = phab + 0.5 * (rhb / rha) * pha; - dvpdr = dvpdr + 0.5*((rhb/rha)*dpha + - pha*((drhb/rha) - (rhb*drha/rha/rha))); - } - - if (rij < rcj) { - phab = phab + 0.5 * (rha / rhb) * phb; - dvpdr = dvpdr + 0.5 * ((rha/rhb)*dphb + - phb*((drha/rhb) - (rha*drhb/rhb/rhb))); - } - - break; - - case eamDaw: - - res = MixingMap[make_pair(at1,at2)].phi->getValueAndDerivativeAt(rij); - phab = res.first; - dvpdr = res.second; - - break; - case eamUnknown: - default: - - sprintf(painCave.errMsg, - "EAM::calcForce hit a mixing method it doesn't know about!\n" - ); - painCave.severity = OPENMD_ERROR; - painCave.isFatal = 1; - simError(); - - } - - drhoidr = drha; - drhojdr = drhb; - - dudr = drhojdr*dfrhodrho_i + drhoidr*dfrhodrho_j + dvpdr; - - f1 = d * dudr / rij; - - // particle_pot is the difference between the full potential - // and the full potential without the presence of a particular - // particle (atom1). - // - // This reduces the density at other particle locations, so - // we need to recompute the density at atom2 assuming atom1 - // didn't contribute. This then requires recomputing the - // density functional for atom2 as well. - // - // Most of the particle_pot heavy lifting comes from the - // pair interaction, and will be handled by vpair. - - fshift_i = data1.F->getValueAt( rho_i - rhb ); - fshift_j = data1.F->getValueAt( rho_j - rha ); - - pot += phab; - - vpair += phab; + if ( *(idat.rij) < data2.rcut) { + *(idat.rho1) += data2.rho->getValueAt( *(idat.rij)); } - - return; + return; } - - - void EAM::calc_eam_prepair_rho(int *atid1, int *atid2, RealType *rij, - RealType* rho_i_at_j, RealType* rho_j_at_i){ - - if (!initialized_) initialize(); + + void EAM::calcFunctional(SelfData &sdat) { - AtomType* atype1 = EAMlist[*atid1]; - AtomType* atype2 = EAMlist[*atid2]; - - calcDensity(atype1, atype2, *rij, *rho_i_at_j, *rho_j_at_i); + if (!initialized_) initialize(); + EAMAtomData &data1 = EAMdata[ EAMtids[sdat.atid] ]; + + data1.F->getValueAndDerivativeAt( *(sdat.rho), *(sdat.frho), + *(sdat.dfrhodrho) ); - return; + (*(sdat.pot))[METALLIC_FAMILY] += *(sdat.frho); + if (sdat.doParticlePot) { + *(sdat.particlePot) += *(sdat.frho); + } + + return; } - void EAM::calc_eam_preforce_Frho(int *atid1, RealType *rho, RealType *frho, - RealType *dfrhodrho) { + + void EAM::calcForce(InteractionData &idat) { if (!initialized_) initialize(); - AtomType* atype1 = EAMlist[*atid1]; + if (haveCutoffRadius_) + if ( *(idat.rij) > eamRcut_) return; + - calcFunctional(atype1, *rho, *frho, *dfrhodrho); + int eamtid1 = EAMtids[idat.atid1]; + int eamtid2 = EAMtids[idat.atid2]; + EAMAtomData &data1 = EAMdata[eamtid1]; + EAMAtomData &data2 = EAMdata[eamtid2]; - return; - } - RealType EAM::getEAMcut(int *atid1) { - - if (!initialized_) initialize(); + // get type-specific cutoff radii - AtomType* atype1 = EAMlist[*atid1]; - - return getRcut(atype1); - } + RealType rci = data1.rcut; + RealType rcj = data2.rcut; - void EAM::do_eam_pair(int *atid1, int *atid2, RealType *d, RealType *rij, - RealType *r2, RealType *sw, RealType *vpair, - RealType *pot, RealType *f1, RealType *rho1, - RealType *rho2, RealType *dfrho1, RealType *dfrho2, - RealType *fshift1, RealType *fshift2) { - - if (!initialized_) initialize(); - AtomType* atype1 = EAMlist[*atid1]; - AtomType* atype2 = EAMlist[*atid2]; + RealType rha(0.0), drha(0.0), rhb(0.0), drhb(0.0); + RealType pha(0.0), dpha(0.0), phb(0.0), dphb(0.0); + RealType phab(0.0), dvpdr(0.0); + RealType drhoidr, drhojdr, dudr; - Vector3d disp(d[0], d[1], d[2]); - Vector3d frc(f1[0], f1[1], f1[2]); + if ( *(idat.rij) < rci) { + data1.rho->getValueAndDerivativeAt( *(idat.rij), rha, drha); + CubicSpline* phi = MixingMap[eamtid1][eamtid1].phi; + phi->getValueAndDerivativeAt( *(idat.rij), pha, dpha); + } - calcForce(atype1, atype2, disp, *rij, *r2, *sw, *vpair, *pot, frc, - *rho1, *rho2, *dfrho1, *dfrho2, *fshift1, *fshift2); + if ( *(idat.rij) < rcj) { + data2.rho->getValueAndDerivativeAt( *(idat.rij), rhb, drhb ); + CubicSpline* phi = MixingMap[eamtid2][eamtid2].phi; + phi->getValueAndDerivativeAt( *(idat.rij), phb, dphb); + } + switch(mixMeth_) { + case eamJohnson: + if ( *(idat.rij) < rci) { + phab = phab + 0.5 * (rhb / rha) * pha; + dvpdr = dvpdr + 0.5*((rhb/rha)*dpha + + pha*((drhb/rha) - (rhb*drha/rha/rha))); + } + + if ( *(idat.rij) < rcj) { + phab = phab + 0.5 * (rha / rhb) * phb; + dvpdr = dvpdr + 0.5 * ((rha/rhb)*dphb + + phb*((drha/rhb) - (rha*drhb/rhb/rhb))); + } + break; + case eamDaw: + if ( *(idat.rij) < MixingMap[eamtid1][eamtid2].rcut) { + MixingMap[eamtid1][eamtid2].phi->getValueAndDerivativeAt( *(idat.rij), + phab, dvpdr); + } + break; + case eamUnknown: + default: - f1[0] = frc.x(); - f1[1] = frc.y(); - f1[2] = frc.z(); + sprintf(painCave.errMsg, + "EAM::calcForce hit a mixing method it doesn't know about!\n" + ); + painCave.severity = OPENMD_ERROR; + painCave.isFatal = 1; + simError(); + + } + + drhoidr = drha; + drhojdr = drhb; + + dudr = drhojdr* *(idat.dfrho1) + drhoidr* *(idat.dfrho2) + dvpdr; + + *(idat.f1) += *(idat.d) * dudr / *(idat.rij); + if (idat.doParticlePot) { + // particlePot is the difference between the full potential and + // the full potential without the presence of a particular + // particle (atom1). + // + // This reduces the density at other particle locations, so we + // need to recompute the density at atom2 assuming atom1 didn't + // contribute. This then requires recomputing the density + // functional for atom2 as well. + + *(idat.particlePot1) += data2.F->getValueAt( *(idat.rho2) - rha ) + - *(idat.frho2); + + *(idat.particlePot2) += data1.F->getValueAt( *(idat.rho1) - rhb) + - *(idat.frho1); + } + + (*(idat.pot))[METALLIC_FAMILY] += phab; + *(idat.vpair) += phab; return; } - - void EAM::setCutoffEAM(RealType *thisRcut) { - eamRcut_ = *thisRcut; - } -} -extern "C" { - -#define fortranCalcDensity FC_FUNC(calc_eam_prepair_rho, CALC_EAM_PREPAIR_RHO) -#define fortranCalcFunctional FC_FUNC(calc_eam_preforce_frho, CALC_EAM_PREFORCE_FRHO) -#define fortranCalcForce FC_FUNC(do_eam_pair, DO_EAM_PAIR) -#define fortranSetCutoffEAM FC_FUNC(setcutoffeam, SETCUTOFFEAM) -#define fortranGetEAMcut FC_FUNC(geteamcut, GETEAMCUT) + RealType EAM::getSuggestedCutoffRadius(pair atypes) { + if (!initialized_) initialize(); - - void fortranCalcDensity(int *atid1, int *atid2, RealType *rij, - RealType *rho_i_at_j, RealType *rho_j_at_i) { + RealType cut = 0.0; + + int atid1 = atypes.first->getIdent(); + int atid2 = atypes.second->getIdent(); + int eamtid1 = EAMtids[atid1]; + int eamtid2 = EAMtids[atid2]; - return OpenMD::EAM::Instance()->calc_eam_prepair_rho(atid1, atid2, rij, - rho_i_at_j, - rho_j_at_i); - } - void fortranCalcFunctional(int *atid1, RealType *rho, RealType *frho, - RealType *dfrhodrho) { + if (eamtid1 != -1) { + EAMAtomData data1 = EAMdata[eamtid1]; + cut = data1.rcut; + } + + if (eamtid2 != -1) { + EAMAtomData data2 = EAMdata[eamtid2]; + if (data2.rcut > cut) + cut = data2.rcut; + } - return OpenMD::EAM::Instance()->calc_eam_preforce_Frho(atid1, rho, frho, - dfrhodrho); - + return cut; } - void fortranSetCutoffEAM(RealType *rcut) { - return OpenMD::EAM::Instance()->setCutoffEAM(rcut); - } - void fortranCalcForce(int *atid1, int *atid2, RealType *d, RealType *rij, - RealType *r2, RealType *sw, RealType *vpair, - RealType *pot, RealType *f1, RealType *rho1, - RealType *rho2, RealType *dfrho1, RealType *dfrho2, - RealType *fshift1, RealType *fshift2){ - - return OpenMD::EAM::Instance()->do_eam_pair(atid1, atid2, d, rij, - r2, sw, vpair, - pot, f1, rho1, - rho2, dfrho1, dfrho2, - fshift1, fshift2); - } - RealType fortranGetEAMcut(int* atid) { - return OpenMD::EAM::Instance()->getEAMcut(atid); - } - } +