Thank you! Now it is working! ______________________________ Anton Gladkyy
2010/7/14 Václav Šmilauer <[email protected]> > > Could you not try script in attachment. It crashes sometimes, not > > always. > OK, for me, it crashes always (did yo utry the debug build?), in > > YADE_PTR_CAST<RpmState>(b->state)->specimenNumber = 0; > > The problem is that you never create RpmState, although you suppose it!! > (I am surprised that your simulations ever worked, actually). Have a > look at CpmMat, you MUST implement newAssocState and stateTypeOk > (replace CpmState by RpmState). Then it will work automatically, > utils.sphere etc will call newAssocState to assign the State subtype > associated to the material. > > Hmm..., it is not in the documentation, I will add it (remind me if I > forget). > > Then it will work. > > Cheers, v. > > > > _______________________________________________ > Mailing list: > https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev> > Post to : [email protected] > Unsubscribe : > https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev> > More help : https://help.launchpad.net/ListHelp >
_______________________________________________ Mailing list: https://launchpad.net/~yade-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp

