# | Line 69 | Line 69 | InitializeFromFile :: ~InitializeFromFile( ){ | |
---|---|---|
69 | } | |
70 | ||
71 | ||
72 | < | void InitializeFromFile :: read_xyz( SimInfo* the_simnfo ){ |
72 | > | void InitializeFromFile :: readInit( SimInfo* the_simnfo ){ |
73 | ||
74 | int i, j, done, which_node, which_atom; // loop counter | |
75 | ||
# | Line 547 | Line 547 | char* InitializeFromFile::parseBoxLine(char* readLine, | |
547 | // set the string tokenizer | |
548 | ||
549 | foo = strtok(readLine, " ,;\t"); | |
550 | < | // ignore the first token which is the time stamp. |
550 | > | // set the timeToken. |
551 | ||
552 | + | if(foo == NULL){ |
553 | + | sprintf( painCave.errMsg, |
554 | + | "error in reading Time from %s\n", |
555 | + | c_in_name ); |
556 | + | return strdup( painCave.errMsg ); |
557 | + | } |
558 | + | simnfo->currentTime = atof( foo ); |
559 | ||
560 | // get the Hx vector | |
561 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |