linearized scheme and D b.c. in outer loops like Uzawa
- make the linearized.hh scheme work again (including python bindings)
- allow for
setup()
without argument to linearize around zero - replace
rhs
argument tosolve
with named argumentrightHandSide
which correctly handles the right hand side vector together withDirichletBC
Description
Given a scheme
with dirichlet boundary conditions g
then calling scheme.solve(target,rhs)
always returns target=g
an the boundary. Calling scheme(u,w)returns
w=u-gon the boundary so the correct behavior fir the
solvemethod is to return
target=rhs+gon the boundary. This is now done when calling
solvewith the named argument
rightHandSide. The original version with
rhs` argument is deprecated. The original behavior can be reproduced by calling
scheme.setConstraints(0,rhs)
scheme.solve(target=target,rightHandSide=rhs)
Edited by Andreas Dedner