> One more solution can be to scan the list of engines form inside one engine.
> You have an exemple in TriaxialStateRecorder, which record variables of
> TriaxialCompressionEngine.
>
The only thing to watch out is _not_ to register the engine pointer as
attribute. The deserializer would create new instance instead of pointer
to the already existing instance.
> This first part will be executed only once :
>
> TriaxialStateRecorder.cpp, Line 69 :
>
> if ( !triaxialCompressionEngine )
>
("only once": more precisely, after every deserialization - like if you
interrupt, save and load again the simulation.)
_______________________________________________
Yade-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/yade-users