sabago / pysph

Automatically exported from code.google.com/p/pysph
0 stars 0 forks source link

ENH: restart simulations from saved state #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be an extremely useful feature to implement restarting of the 
simulation from a saved state on disk. 

The following could probably be a way to do it:
  * A save_state component could save the particle arrays and pickle any additional data required
  * A load_state component would load the data from the files

Serial case would probably be easier to implement. In the parallel case the 
saved_state could be made independent of parallelization so that the simulation 
can be restarted using different number of processes. A check can also be 
inserted so that same parallelized state is restored if restarted on same 
number of processes

Original issue reported on code.google.com by pankaj86 on 15 Aug 2010 at 6:18

GoogleCodeExporter commented 9 years ago
initial work in 
http://code.google.com/r/pankaj86-pysph/source/detail?r=b96c0263ff44864834d7d62e
207d51d7c25c8b9c

waiting for cleanup/testing and merging

Original comment by pankaj86 on 10 Jun 2011 at 10:43