yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #03184
Re: [Branch ~yade-dev/yade/trunk] Rev 1993: 1. Convert a RockPM class to YADE_CLASS_BASE_DOC_ATTRS
>
> YADE_CLASS_BASE_DOC_ATTRDECL_CTOR_PY(Law2_Dem3DofGeom_RockPMPhys_Rpm,LawFunctor,"Constitutive law for the Rpm model",
> + ((int,thisIsJustCap,0,"This is just a
> cap.")),,);
YADE_CLASS_BASE_DOC_ATTRDECL_CTOR_PY(Law2_Dem3DofGeom_RockPMPhys_Rpm,LawFunctor,"Constitutive law for the Rpm model",((Real,foo,0,"Foo")),,);
works just fine here. (Don't forget to remove REGISTER_CLASS_AND_BASE
and REGISTER_ATTRIBUTES).
If there is no attribute declared, it will fail, I will fix that later.
References