yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #00736
[svn] r1554 - trunk/pkg/dem/PreProcessor
Author: jduriez
Date: 2008-10-24 11:09:38 +0200 (Fri, 24 Oct 2008)
New Revision: 1554
Modified:
trunk/pkg/dem/PreProcessor/SimpleShear.cpp
Log:
- The GlobalStifnessCounter engine (for correct use of GlobalStifnessTimeStepper) was forgotten in the preprocessor SimpleShear...
Modified: trunk/pkg/dem/PreProcessor/SimpleShear.cpp
===================================================================
--- trunk/pkg/dem/PreProcessor/SimpleShear.cpp 2008-10-24 08:47:46 UTC (rev 1553)
+++ trunk/pkg/dem/PreProcessor/SimpleShear.cpp 2008-10-24 09:09:38 UTC (rev 1554)
@@ -333,10 +333,16 @@
shared_ptr<GlobalStiffnessTimeStepper> globalStiffnessTimeStepper(new GlobalStiffnessTimeStepper);
globalStiffnessTimeStepper->sdecGroupMask = 1;
globalStiffnessTimeStepper->timeStepUpdateInterval = timeStepUpdateInterval;
+ globalStiffnessTimeStepper->defaultDt=1e-5;
+ shared_ptr<GlobalStiffnessCounter> globalStiffnessCounter(new GlobalStiffnessCounter);
+ globalStiffnessCounter->interval = timeStepUpdateInterval;
+
+
rootBody->engines.clear();
rootBody->engines.push_back(shared_ptr<Engine>(new PhysicalActionContainerReseter));
+ rootBody->engines.push_back(globalStiffnessCounter);
rootBody->engines.push_back(globalStiffnessTimeStepper);
rootBody->engines.push_back(boundingVolumeDispatcher);
rootBody->engines.push_back(shared_ptr<Engine>(new PersistentSAPCollider));