69 |
|
if( eam_Frhovals != NULL ) delete[] eam_Frhovals; |
70 |
|
} |
71 |
|
|
72 |
< |
LinkedAtomType* find(char* key){ |
72 |
> |
LinkedAtomType* find(const char* key){ |
73 |
|
if( !strcmp(name, key) ) return this; |
74 |
|
if( next != NULL ) return next->find(key); |
75 |
|
return NULL; |
527 |
|
|
528 |
|
for( i=0; i<nAtoms; i++ ){ |
529 |
|
|
530 |
< |
currentAtomType = headAtomType->find( the_atoms[i]->getType() ); |
530 |
> |
currentAtomType = headAtomType->find(the_atoms[i]->getType().c_str() ); |
531 |
|
if( currentAtomType == NULL ){ |
532 |
|
sprintf( painCave.errMsg, |
533 |
|
"AtomType error, %s not found in force file.\n", |
534 |
< |
the_atoms[i]->getType() ); |
534 |
> |
the_atoms[i]->getType().c_str() ); |
535 |
|
painCave.isFatal = 1; |
536 |
|
simError(); |
537 |
|
} |