Using f2py on an MPI fortran code

182 views
Skip to first unread message

Tom

unread,
Feb 12, 2015, 1:10:03 PM2/12/15
to f2py-...@googlegroups.com
Hi,

I've been attempting to wrapper a fortran mpi code with f2py, but I've been running into a few issues. I want to call the fortran code in a parallel way from an effectively serial python code. The fortran code is doing an expensive calculation that needs to be parallelised in some way. If there is a way to create parallel fortran modules that can be called from a serial python code this would be the best case for me. Problem is I don't know a way of doing this.

I have attempted to use mpi4py as described here - http://mpi4py.scipy.org/docs/usrman/tutorial.html#wrapping-with-f2py. However, I run into problems as my fortran code creates a cartesian communicator, which does not appear to be something mpi4py can handle.

Any suggestions are appreciated,
Tom
Reply all
Reply to author
Forward
0 new messages