← Back to team overview

yade-users team mailing list archive

Re: Saving/Reloadind


- for saving/reloading in python, you've got some examples here :

Briefly, it's o.save('filename') for save, and o.load('filename') for load (where o=Omega(), the whole simulation)

-for how to stop a simulation in c++, you can look here :


Chiara Modenese a écrit :
Hi all,

question about saving and reloading xml files. In Yade documentation website Vaclav says that it is possible to temporary store the simulation and starting it again from that point. How can I put a checkpoint in the simulation in order to stop, save and reload it? Any example with python/c++? For instance for the triaxial or whatever.

Luc I was looking for that bool, but I didn't find it everywhere in the code if not just as a declared variable. I think in the triaxial is not more working now. Have a look at the class NewtonIntegrator.
Look also at this line in the triaxial

if(biaxial2dTest){ body->state->blockedDOFs=State::DOF_Z; }

Cheers, Chiara

Mailing list: https://launchpad.net/~yade-users
Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Jérôme Duriez
ATER Iut 1 Grenoble, département GMP - Laboratoire 3S-R (ne pas laisser de messages sur le répondeur)