On Fri, Sep 16, 2016 at 3:38 PM, Gopalakrishnan, Krishnakumar
<krishnaku...@imperial.ac.uk> wrote:
>
> The questions are : 1) Has anybody tried this before ? 2) Does this sound 
> problematic from a technical or practical perspective. 3) Does this sound 
> remotely useful.

To my knowledge, this hasn't been done with FiPy. Certainly, this can
be set up with FiPy using mpi4py or ipython's parallel tools, which
you seem to have done below. It could well be useful in specific
cases, but In general this approach is very limited since you can't
scale to different number of processors so I would definitely not
recommend making too much effort.

> I have successfully implemented a multiprocessor parallelisation for 
> examples.diffusion.coupled (shown below) . The values of the simulation 
> results (for v0 & v1) after 100 time-steps are very very close to that of the 
> serial sweep. Although this code is several times slower than the serial 
> code, we tried this more as a concept demonstrator before embarking to spend 
> significant effort to convert our serial code to multiprocessor approach.  If 
> you see a red flag, it would be much appreciated if you can help us by 
> pointing it out.

I don't see a red flag there. Try to set it up so that the equations
are not redefined for every sweep. Also, do an in place update of the
variables using [:] or setValue (return the array rather than the
variable from get_res).

-- 
Daniel Wheeler

_______________________________________________
fipy mailing list
fipy@nist.gov
http://www.ctcms.nist.gov/fipy
  [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Reply via email to