ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/InitializeFromFile.cpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/InitializeFromFile.cpp (file contents):
Revision 640 by mmeineke, Thu Jul 10 22:15:53 2003 UTC vs.
Revision 641 by mmeineke, Mon Jul 21 16:23:10 2003 UTC

# Line 69 | Line 69 | void InitializeFromFile :: read_xyz( SimInfo* the_simn
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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines