Comment 6 for bug 888530

Revision history for this message
Johan Hake (johan-hake) wrote : Re: [Bug 888530] Re: u in u.function_space() returns False

On Monday November 14 2011 06:21:42 Martin Sandve Alnæs wrote:
> Fix works great, but I think this issue propagates further. When using
> assemble_system from python with forms where this was a problem, this
> assertion is triggered:
>
> python:
> /home/martinal/dev/fenics/dolfin/work/dolfin/fem/SystemAssembler.cpp:140:
> static void dolfin::SystemAssembler::assemble(dolfin::GenericMatrix&,
> dolfin::GenericVector&, const dolfin::Form&, const dolfin::Form&, const
> std::vector<const dolfin::DirichletBC*>&, const
> dolfin::MeshFunction<unsigned int>*, const dolfin::MeshFunction<unsigned
> int>*, const dolfin::MeshFunction<unsigned int>*, const
> dolfin::GenericVector*, bool, bool, bool): Assertion
> `a.function_space(1).get() == L.function_space(0).get()' failed.
>
> I'm attaching a script which can trigger this. Search for FAIL to see
> how to make it fail or run.

I see. If this propagate to other situation, we should implement an equality
operator.

Johan