yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #02298
Re: Saving/Reloadind
Hello,
- for saving/reloading in python, you've got some examples here :
http://thread.gmane.org/gmane.science.physics.yade.user/1207/focus=1212
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 :
http://thread.gmane.org/gmane.science.physics.yade.user/978/focus=979
Jerome
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
04.56.52.86.49 (ne pas laisser de messages sur le répondeur)
References