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 1203 by gezelter, Thu May 27 18:59:17 2004 UTC vs.
Revision 1268 by tim, Fri Jun 11 17:16:21 2004 UTC

# Line 84 | Line 84 | void DumpReader::scanFile( void ){
84  
85   void DumpReader::scanFile( void ){
86  
87 <  int vectorSize;
88 <  int i, j, k;
87 >  int i, j;
88    int lineNum = 0;
89    char readBuffer[2000];
91  char* foo;
90    fpos_t *currPos;
93  double time;
91  
95
96
92   #ifdef IS_MPI
93    if( worldRank == 0 ){
94   #endif // is_mpi
# Line 176 | Line 171 | void DumpReader :: readSet( int whichFrame ){
171  
172   void DumpReader :: readSet( int whichFrame ){
173  
174 <   int i, j;
174 >  int i;
175 >  unsigned int j;
176  
177   #ifdef IS_MPI
178    int done, which_node, which_atom; // loop counter
# Line 616 | Line 612 | char* DumpReader::parseDumpLine(char* readLine, StuntD
612  
613      qSqr = (q[0] * q[0]) + (q[1] * q[1]) + (q[2] * q[2]) + (q[3] * q[3]);
614  
615 +    if (fabs(qSqr) < 1e-6) {
616 +      sprintf(painCave.errMsg,
617 +          "initial quaternion error (q0^2 + q1^2 + q2^2 + q3^2 ~ 0).\n");
618 +       return strdup(painCave.errMsg);
619 +    }
620 +
621      qLength = sqrt( qSqr );
622      q[0] = q[0] / qLength;
623      q[1] = q[1] / qLength;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines