Pankaj Pandey
unread,Apr 5, 2011, 7:15:50 AM4/5/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pysp...@googlegroups.com
I've implemented a few solver interfaces (commandline, xml-rpc and python multiprocessing based). The diff is based on changeset: 331:1343fb874896.
The basic idea is to have a single Controller which is handed over the control by the solver at every iteration, and various interfaces (added to the controller) which can execute predefined methods on a Control object. These interfaces are in separate threads. Also a MultiProcessing interface is implemented which provides a proxy for the Control object over python's multiprocessing interface. Currently a few methods do not work in parallel runs.
The performance of the solver seems unaffected in absence of control commands.
An example multiprocessing client is also included which plots the particle distribution every second using matplotlib.
I seek comments regarding design or implementation issues before comitting the changes.
Regards,
Pankaj