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

Comparing trunk/OOPSE/libmdtools/DumpReader.cpp (file contents):
Revision 1078 by tim, Tue Mar 2 20:32:40 2004 UTC vs.
Revision 1097 by gezelter, Mon Apr 12 20:32:20 2004 UTC

# Line 222 | Line 222 | void DumpReader :: readSet( int whichFrame ){
222    double time;
223  
224    fpos_t *framePos;
225 +  framePos = frameStart[whichFrame]->getPos();
226    
227   #ifndef IS_MPI
228    
228  framePos = frameStart[whichFrame]->getPos();
229
229    fsetpos(inFile, framePos);
230    
231  
# Line 466 | Line 465 | char* DumpReader::parseDumpLine(char* readLine, int gl
465  
466    char *foo; // the pointer to the current string token
467    
468 <  double pos[3]; // position place holders
469 <  double vel[3]; // velocity placeholders
470 <  double q[4]; // the quaternions
471 <  double jx, jy, jz; // angular velocity placeholders;
468 >  double pos[3];        // position place holders
469 >  double vel[3];        // velocity placeholders
470 >  double q[4];          // the quaternions
471 >  double ji[3];         // angular velocity placeholders;
472    double qSqr, qLength; // needed to normalize the quaternion vector.
473    
474    Atom **atoms = simnfo->atoms;
# Line 630 | Line 629 | char* DumpReader::parseDumpLine(char* readLine, int gl
629                 inName, n_atoms, atomIndex );
630        return strdup( painCave.errMsg );
631      }
632 <    jx = atof( foo );
632 >    ji[0] = atof( foo );
633        
634      foo = strtok(NULL, " ,;\t");
635      if(foo == NULL){
# Line 640 | Line 639 | char* DumpReader::parseDumpLine(char* readLine, int gl
639                 inName, n_atoms, atomIndex );
640        return strdup( painCave.errMsg );
641      }
642 <    jy = atof(foo );
642 >    ji[1] = atof(foo );
643        
644      foo = strtok(NULL, " ,;\t");
645      if(foo == NULL){
# Line 650 | Line 649 | char* DumpReader::parseDumpLine(char* readLine, int gl
649                 inName, n_atoms, atomIndex );
650        return strdup( painCave.errMsg );
651      }
652 <    jz = atof( foo );
652 >    ji[2] = atof( foo );
653        
654      dAtom = ( DirectionalAtom* )atoms[atomIndex];
655  
# Line 668 | Line 667 | char* DumpReader::parseDumpLine(char* readLine, int gl
667        
668      // add the angular velocities
669  
670 <    dAtom->setJx( jx );
672 <    dAtom->setJy( jy );
673 <    dAtom->setJz( jz );
670 >    dAtom->setJ( ji );
671    }
672      
673    // add the positions and velocities to the atom

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines