--- branches/new_design/OOPSE-4/src/UseTheForce/EAM_FF.cpp 2004/11/03 16:08:43 1701 +++ branches/new_design/OOPSE-4/src/UseTheForce/EAM_FF.cpp 2004/11/03 18:00:36 1702 @@ -69,7 +69,7 @@ namespace EAM_NS{ if( eam_Frhovals != NULL ) delete[] eam_Frhovals; } - LinkedAtomType* find(char* key){ + LinkedAtomType* find(const char* key){ if( !strcmp(name, key) ) return this; if( next != NULL ) return next->find(key); return NULL; @@ -527,11 +527,11 @@ void EAM_FF::initializeAtoms( int nAtoms, Atom** the_a for( i=0; ifind( the_atoms[i]->getType() ); + currentAtomType = headAtomType->find(the_atoms[i]->getType().c_str() ); if( currentAtomType == NULL ){ sprintf( painCave.errMsg, "AtomType error, %s not found in force file.\n", - the_atoms[i]->getType() ); + the_atoms[i]->getType().c_str() ); painCave.isFatal = 1; simError(); }