← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 2039: Register TimeStepper with YADE_PLUGIN as it should be (that's the reason it wasn't reported as no...

 

------------------------------------------------------------
revno: 2039
committer: Václav Šmilauer <eudoxos@xxxxxxxx>
branch nick: trunk
timestamp: Fri 2010-02-19 09:53:11 +0100
message:
  Register TimeStepper with YADE_PLUGIN as it should be (that's the reason it wasn't reported as not being registered with YADE_BASE_DOC_* -- thanks Bruno for pointing that out)
modified:
  core/TimeStepper.cpp
  core/TimeStepper.hpp
  core/corePlugins.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 'core/TimeStepper.cpp'
--- core/TimeStepper.cpp	2010-02-18 22:47:05 +0000
+++ core/TimeStepper.cpp	2010-02-19 08:53:11 +0000
@@ -12,13 +12,6 @@
 #include<yade/core/GlobalEngine.hpp>
 #include<yade/core/Scene.hpp>
 
-// TimeStepper::TimeStepper() : GlobalEngine()
-// {	
-// 	active = true;
-// 	timeStepUpdateInterval = 1;
-// }
-
-
 bool TimeStepper::isActivated(Scene* mb)
 {
 	return (active && (mb->currentIteration % timeStepUpdateInterval == 0));

=== modified file 'core/TimeStepper.hpp'
--- core/TimeStepper.hpp	2010-02-18 22:47:05 +0000
+++ core/TimeStepper.hpp	2010-02-19 08:53:11 +0000
@@ -15,13 +15,8 @@
 
 class Body;
 
-class TimeStepper : public GlobalEngine
-{
-	public :
-// 		bool active;
-// 		unsigned int timeStepUpdateInterval;
-
-// 		TimeStepper();
+class TimeStepper: public GlobalEngine{
+	public:
 		virtual void computeTimeStep(Scene* ) { throw; };
 		virtual bool isActivated(Scene*);
 		virtual void action(Scene* b) { computeTimeStep(b);} ;
@@ -31,9 +26,6 @@
 			TimeStepper,GlobalEngine,"Engine defining time-step (fundamental class)",
 			((bool,active,true,"is the engine active?"))
 			((unsigned int,timeStepUpdateInterval,1,"dt update interval")));
-/*
-	REGISTER_ATTRIBUTES(GlobalEngine,(active)(timeStepUpdateInterval));
-	REGISTER_CLASS_AND_BASE(TimeStepper,GlobalEngine);*/
 };
 
 REGISTER_SERIALIZABLE(TimeStepper);

=== modified file 'core/corePlugins.cpp'
--- core/corePlugins.cpp	2010-02-09 16:50:30 +0000
+++ core/corePlugins.cpp	2010-02-19 08:53:11 +0000
@@ -16,4 +16,5 @@
 #include<yade/core/PartialEngine.hpp>
 #include<yade/core/Shape.hpp>
 #include<yade/core/State.hpp>
-YADE_PLUGIN((Body)(Bound)(Cell)(Collider)(Dispatcher)(Engine)(FileGenerator)(Functor)(GlobalEngine)(Interaction)(InteractionGeometry)(InteractionPhysics)(Material)(PartialEngine)(Shape)(State));
+#include<yade/core/TimeStepper.hpp>
+YADE_PLUGIN((Body)(Bound)(Cell)(Collider)(Dispatcher)(Engine)(FileGenerator)(Functor)(GlobalEngine)(Interaction)(InteractionGeometry)(InteractionPhysics)(Material)(PartialEngine)(Shape)(State)(TimeStepper));


Follow ups