dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #15656
Re: MPI problem with python demos
On Fri, Sep 25, 2009 at 9:03 AM, Harish Narayanan
<harish.mlists@xxxxxxxxx> wrote:
> Has anyone seen the following problem when trying to run python demos?
> The C++ demos work, both in serial and in parallel. When I try to run
> python demos (either in serial or in parallel), I receive the following
> (on a hardy machine):
>
>
> $ python demo.py
>
> Traceback (most recent call last):
> File "demo.py", line 16, in <module>
> V = VectorFunctionSpace(mesh, "CG", 1)
> File
> "/home/harish/Work/FEniCS/build/lib/python2.5/site-packages/dolfin/functionspace.py",
> line 271, in __init__
> spaces = dim*[FunctionSpace(mesh, family, degree, restriction)]
> File
> "/home/harish/Work/FEniCS/build/lib/python2.5/site-packages/dolfin/functionspace.py",
> line 194, in __init__
> FunctionSpaceBase.__init__(self, mesh, element)
> File
> "/home/harish/Work/FEniCS/build/lib/python2.5/site-packages/dolfin/functionspace.py",
> line 43, in __init__
> ufc_element, ufc_dofmap = jit(self._element)
> File
> "/home/harish/Work/FEniCS/build/lib/python2.5/site-packages/dolfin/jit.py",
> line 43, in mpi_jit
> if MPI.num_processes() == 1:
> TypeError: num_processes() takes exactly 1 argument (0 given)
I think this is a bug in SWIG. Which version do you have? At least
SWIG 1.3.37 has this bug.
Johannes
References