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 1108 by tim, Wed Apr 14 15:37:41 2004 UTC vs.
Revision 1113 by tim, Thu Apr 15 16:18:26 2004 UTC

# Line 92 | Line 92 | void InitializeFromFile :: readInit( SimInfo* the_simn
92    char *parseErr;
93  
94    vector<StuntDouble*> integrableObjects;
95  vector<StuntDouble*>::iterator iter;
95  
96    simnfo = the_simnfo;
97  
# Line 141 | Line 140 | void InitializeFromFile :: readInit( SimInfo* the_simn
140  
141      integrableObjects = (simnfo->molecules[i]).getIntegrableObjects();
142  
143 <    for(iter = integrableObjects.begin(); iter!= integrableObjects.end(); iter++)
143 >    for(j = 0; j < integrableObjects.size(); j++){
144  
145        eof_test = fgets(read_buffer, sizeof(read_buffer), c_in_file);
146        if(eof_test == NULL){
# Line 154 | Line 153 | void InitializeFromFile :: readInit( SimInfo* the_simn
153          simError();
154        }
155        
156 <      parseErr = parseDumpLine( read_buffer, *iter);
156 >      parseErr = parseDumpLine( read_buffer, integrableObjects[j]);
157        if( parseErr != NULL ){
158          strcpy( painCave.errMsg, parseErr );
159          painCave.isFatal = 1;
160          simError();
161        }
162 +    }
163    }
164  
165
165    // MPI Section of code..........
166   #else //IS_MPI
167  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines