--- trunk/OOPSE/libmdtools/InitializeFromFile.cpp 2003/07/18 20:44:36 640 +++ trunk/OOPSE/libmdtools/InitializeFromFile.cpp 2003/07/21 16:23:10 641 @@ -69,7 +69,7 @@ void InitializeFromFile :: read_xyz( SimInfo* the_simn } -void InitializeFromFile :: read_xyz( SimInfo* the_simnfo ){ +void InitializeFromFile :: readInit( SimInfo* the_simnfo ){ int i, j, done, which_node, which_atom; // loop counter @@ -547,8 +547,15 @@ char* InitializeFromFile::parseBoxLine(char* readLine, // set the string tokenizer foo = strtok(readLine, " ,;\t"); - // ignore the first token which is the time stamp. + // set the timeToken. + if(foo == NULL){ + sprintf( painCave.errMsg, + "error in reading Time from %s\n", + c_in_name ); + return strdup( painCave.errMsg ); + } + simnfo->currentTime = atof( foo ); // get the Hx vector