← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 2266: 1. Tentative fix for the clumps bug

 

------------------------------------------------------------
revno: 2266
fixes bug(s): https://launchpad.net/bugs/577581
committer: Václav Šmilauer <eudoxos@xxxxxxxx>
branch nick: trunk
timestamp: Wed 2010-06-02 06:46:39 +0200
message:
  1. Tentative fix for the clumps bug
modified:
  pkg/dem/DataClass/Clump.cpp


--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'pkg/dem/DataClass/Clump.cpp'
--- pkg/dem/DataClass/Clump.cpp	2010-05-04 13:56:05 +0000
+++ pkg/dem/DataClass/Clump.cpp	2010-06-02 04:46:39 +0000
@@ -224,7 +224,7 @@
 	//TRWM3MAT(Clump::inertiaTensorRotate(Ic_orientG,R_g2c));
 
 	// set quaternion from rotation matrix
-	state->ori=Quaternionr(R_g2c);
+	state->ori=Quaternionr(R_g2c); state->ori.normalize();
 	// now Ic is diagonal
 	state->inertia=Vector3r(Ic(0,0),Ic(1,1),Ic(2,2));
 	state->mass=M;


Follow ups