yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #05351
Re: Crash in a loop
Thank you!
Now it is working!
______________________________
Anton Gladkyy
2010/7/14 Václav Šmilauer <eudoxos@xxxxxxxx>
> > 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 : yade-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> More help : https://help.launchpad.net/ListHelp
>
References
-
Crash in a loop
From: Anton Gladky, 2010-07-13
-
Re: Crash in a loop
From: Václav Šmilauer, 2010-07-13
-
Re: Crash in a loop
From: Anton Gladky, 2010-07-13
-
Re: Crash in a loop
From: Václav Šmilauer, 2010-07-13
-
Re: Crash in a loop
From: Anton Gladky, 2010-07-13
-
Re: Crash in a loop
From: Anton Gladky, 2010-07-14
-
Re: Crash in a loop
From: Anton Gladky, 2010-07-14
-
Re: Crash in a loop
From: Václav Šmilauer, 2010-07-14
-
Re: Crash in a loop
From: Anton Gladky, 2010-07-14
-
Re: Crash in a loop
From: Václav Šmilauer, 2010-07-14