← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 4180: deleted vtk output of force for boxes (bug #1376734)

 

------------------------------------------------------------
revno: 4180
committer: Jan Stransky <jan.stransky@xxxxxxxxxxx>
timestamp: Tue 2014-10-07 15:13:28 +0200
message:
  deleted vtk output of force for boxes (bug #1376734)
modified:
  pkg/dem/VTKRecorder.cpp


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

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'pkg/dem/VTKRecorder.cpp'
--- pkg/dem/VTKRecorder.cpp	2014-08-20 13:03:23 +0000
+++ pkg/dem/VTKRecorder.cpp	2014-10-07 13:13:28 +0000
@@ -662,20 +662,6 @@
 			const Box* box = dynamic_cast<Box*>(b->shape.get()); 
 			if (box){
 
-				if(recActive[REC_FORCE]){
-					scene->forces.sync();
-					const Vector3r& f = scene->forces.getForce(b->getId());
-					const Vector3r& t = scene->forces.getTorque(b->getId());
-					Real ff[3] = { (Real)  f[0], (Real) f[1], (Real) f[2] };
-					Real tt[3] = { (Real)  t[0], (Real) t[1], (Real) t[2] };
-					Real fn = f.norm();
-					Real tn = t.norm();
-					boxesForceVec->InsertNextTupleValue(ff);
-					boxesForceLen->InsertNextValue(fn);
-					boxesTorqueVec->InsertNextTupleValue(tt);
-					boxesTorqueLen->InsertNextValue(tn);
-				}
-
 				Vector3r pos(scene->isPeriodic ? scene->cell->wrapShearedPt(b->state->pos) : b->state->pos);
 				Vector3r ext(box->extents);
 				vtkSmartPointer<vtkQuad> boxes = vtkSmartPointer<vtkQuad>::New();