Bug#631589: python-dolfin: python -c "import dolfin" fails with MPI error
LUK ShunTim
shuntim.luk at polyu.edu.hk
Tue Aug 16 11:00:51 UTC 2011
On 08/16/2011 05:30 PM, Johannes Ring wrote:
> Hi Luk,
>
> thanks for the report and sorry for the late reply.
>
> On Sat, Jun 25, 2011 at 7:57 AM, LUK ShunTim <shuntim.luk at polyu.edu.hk> wrote:
>> $ python -c "import dolfin"
>> *** The MPI_comm_size() function was called before MPI_INIT was invoked.
>> *** This is disallowed by the MPI standard.
>> *** Your MPI job will now abort.
>
> Does importing PyTrilinos before dolfin fix this problem for you? Try:
>
> $ python -c "import PyTrilinos;import dolfin"
>
> This fixes the problem for me.
Yes, it does.
>
> Johannes
>
Now an OT bug. :-)
I added the "import PyTrilinos" to demo_poisson.py and got a ufl.Form error.
$ python demo_poisson.py
Deprecated: ufl.Form has no properties '*_domains'.
To associate domains with a form, use dss = ds[mydomains]; a = f*dss(1).
Traceback (most recent call last):
File "demo_poisson.py", line 63, in <module>
problem = VariationalProblem(a, L, bc)
File
"/usr/lib/python2.6/dist-packages/dolfin/fem/variationalproblem.py",
line 64, in __init__
self.a = Form(a, form_compiler_parameters=form_compiler_parameters)
File "/usr/lib/python2.6/dist-packages/dolfin/fem/form.py", line 70,
in __init__
if form.cell_domains is not None:
File "/usr/lib/python2.6/dist-packages/ufl/form.py", line 58, in
_get_domains
self._trigger_domain_error()
File "/usr/lib/python2.6/dist-packages/ufl/form.py", line 56, in
_trigger_domain_error
error(msg)
File "/usr/lib/python2.6/dist-packages/ufl/log.py", line 148, in error
raise self._exception_type(self._format_raw(*message))
ufl.log.UFLException: Deprecated: ufl.Form has no properties '*_domains'.
To associate domains with a form, use dss = ds[mydomains]; a = f*dss(1).
I guess this will be fixed with the pending 1.0 release.
Regards,
ST
--
More information about the debian-science-maintainers
mailing list