------------------------------------------------------------
revno: 2363
committer: Anton Gladky <[email protected]>
branch nick: trunk
timestamp: Wed 2010-07-14 14:44:25 +0200
message:
  RockPM fix
modified:
  pkg/dem/meta/RockPM.hpp


--
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/meta/RockPM.hpp'
--- pkg/dem/meta/RockPM.hpp	2010-07-14 11:30:24 +0000
+++ pkg/dem/meta/RockPM.hpp	2010-07-14 12:44:25 +0000
@@ -38,6 +38,9 @@
 
 /** This class holds information associated with each body */
 class RpmMat: public FrictMat {
+		public:
+			virtual shared_ptr<State> newAssocState() const { return shared_ptr<State>(new RpmState); }
+			virtual bool stateTypeOk(State* s) const { return (bool)dynamic_cast<RpmState*>(s); }
 		YADE_CLASS_BASE_DOC_ATTRS_CTOR(RpmMat,FrictMat,"Rock material, for use with other Rpm classes.",
 			((int,exampleNumber,0,"Number of the specimen. This value is equal for all particles of one specimen. [-]"))
 			((bool,initCohesive,false,"The flag shows, whether particles of this material can be cohesive. [-]"))

_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to