ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-2.0/src/io/DumpReader.cpp
(Generate patch)

Comparing branches/new_design/OOPSE-2.0/src/io/DumpReader.cpp (file contents):
Revision 1863 by tim, Tue Nov 30 23:14:29 2004 UTC vs.
Revision 1864 by tim, Tue Dec 7 05:00:31 2004 UTC

# Line 477 | Line 477 | void DumpReader::parseDumpLine(char *line, StuntDouble
477                      "initial quaternion error (q0^2 + q1^2 + q2^2 + q3^2 ~ 0).\n");
478              painCave.isFatal = 1;
479              simError();
480            
481        } else if (fabs(qlen - 1.0) > oopse::epsilon) { // check that the quaternion vector is normalized
482            sprintf(painCave.errMsg,
483                    "initial quaternion error (q0^2 + q1^2 + q2^2 + q3^2  != 1.0).\n");
484            painCave.isFatal = 0;
485            simError();        
480              
481 <            q.normalize();
482 <        }        
481 >        }
482 >
483 >        q.normalize();
484 >              
485          integrableObject->setQ(q);
486          
487          ji[0] = tokenizer.nextTokenAsFloat();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines