[petsc-users] pcfieldsplitting not working for VI
Justin Chang
jychang48 at gmail.com
Tue Nov 29 01:24:58 CST 2016
Lawrence,
I added the following line:
rs_solver.setDM(a._dm)
And it gives this error:
Traceback (most recent call last):
File "sphere.py", line 128, in <module>
rs_solver.setDM(a._dm)
AttributeError: 'Form' object has no attribute '_dm'
Thanks,
Justin
On Tue, Nov 29, 2016 at 1:12 AM, Lawrence Mitchell <
lawrence.mitchell at imperial.ac.uk> wrote:
>
>
> > On 29 Nov 2016, at 02:02, Justin Chang <jychang48 at gmail.com> wrote:
> >
> > Why is this happening? It seems to me VINEWTONRSLS is not understanding
> that I have a two-field formulation.
>
> For the built in solvers, we set up a dmshell on the snes that knows how
> to do field splitting. Because you set your snes up by hand, it isn't
> available. You'll need to call snes.setDM. The mixed finctionspace provides
> the correct dm via a ._dm property I think.
>
> Lawrence
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20161129/ff2542f2/attachment.html>
More information about the petsc-users
mailing list