Bug#631589: python-dolfin: python -c "import dolfin" fails with MPI error

Johannes Ring johannr at simula.no
Tue Aug 16 11:13:53 UTC 2011


On Tue, Aug 16, 2011 at 1:00 PM, LUK ShunTim <shuntim.luk at polyu.edu.hk> wrote:
> Yes, it does.

Good. I will add "import PyTrilinos" at the top of dolfin/__init__.py
to make sure that it will be imported before dolfin.

> 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.

Yes, it's probably an incompatibility between ufl 1.0-beta2 and dolfin
0.9.11, and it should be fixed with the 1.0-beta release. I'm about to
prepare a RFS now.

Thanks,

Johannes





More information about the debian-science-maintainers mailing list