solver interfaces implementation

2 views
Skip to first unread message

Pankaj Pandey

unread,
Apr 5, 2011, 7:15:50 AM4/5/11
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
interfaces.diff
Reply all
Reply to author
Forward
0 new messages