--- trunk/OOPSE/libmdtools/EAM_FF.cpp 2003/08/07 00:47:33 669 +++ trunk/OOPSE/libmdtools/EAM_FF.cpp 2003/08/08 21:22:37 673 @@ -1023,7 +1023,7 @@ int EAM_NS::parseEAM(atomStruct &info, char *eamPotFil myEam_rhovals[j+0] = atof( the_token ); // Value 2 - if ( (the_token = strtok( eam_read_buffer, " \n\t,;")) == NULL){ + if ( (the_token = strtok( NULL, " \n\t,;")) == NULL){ sprintf( painCave.errMsg, "Error parseing EAM nrho: line in %s\n", eamPotFile ); painCave.isFatal = 1; @@ -1033,7 +1033,7 @@ int EAM_NS::parseEAM(atomStruct &info, char *eamPotFil myEam_rhovals[j+1] = atof( the_token ); // Value 3 - if ( (the_token = strtok( eam_read_buffer, " \n\t,;")) == NULL){ + if ( (the_token = strtok( NULL, " \n\t,;")) == NULL){ sprintf( painCave.errMsg, "Error parseing EAM nrho: line in %s\n", eamPotFile ); painCave.isFatal = 1; @@ -1043,7 +1043,7 @@ int EAM_NS::parseEAM(atomStruct &info, char *eamPotFil myEam_rhovals[j+2] = atof( the_token ); // Value 4 - if ( (the_token = strtok( eam_read_buffer, " \n\t,;")) == NULL){ + if ( (the_token = strtok( NULL, " \n\t,;")) == NULL){ sprintf( painCave.errMsg, "Error parseing EAM nrho: line in %s\n", eamPotFile ); painCave.isFatal = 1; @@ -1053,7 +1053,7 @@ int EAM_NS::parseEAM(atomStruct &info, char *eamPotFil myEam_rhovals[j+3] = atof( the_token ); // Value 5 - if ( (the_token = strtok( eam_read_buffer, " \n\t,;")) == NULL){ + if ( (the_token = strtok( NULL, " \n\t,;")) == NULL){ sprintf( painCave.errMsg, "Error parseing EAM nrho: line in %s\n", eamPotFile ); painCave.isFatal = 1; @@ -1061,7 +1061,7 @@ int EAM_NS::parseEAM(atomStruct &info, char *eamPotFil } myEam_rhovals[j+4] = atof( the_token ); - + } *eam_rvals = myEam_rvals; *eam_rhovals = myEam_rhovals;