yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #05349
Re: Crash in a loop
> 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.
Follow ups
References