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.
On Monday November 14 2011 06:21:42 Martin Sandve Alnæs wrote: dev/fenics/ dolfin/ work/dolfin/ fem/SystemAssem bler.cpp: 140: :SystemAssemble r::assemble( dolfin: :GenericMatrix& , :GenericVector& , const dolfin::Form&, const dolfin::Form&, const :DirichletBC* >&, const :MeshFunction< unsigned int>*, const dolfin: :MeshFunction< unsigned :MeshFunction< unsigned int>*, const :GenericVector* , bool, bool, bool): Assertion space(1) .get() == L.function_ space(0) .get()' failed.
> 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/
> static void dolfin:
> dolfin:
> std::vector<const dolfin:
> dolfin:
> int>*, const dolfin:
> dolfin:
> `a.function_
>
> 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