[petsc-users] fieldsplit: Unhandled case, must have at least two fields, not 1!

Jed Brown jedbrown at mcs.anl.gov
Fri Nov 29 21:42:00 CST 2013


Mark Adams <mfadams at lbl.gov> writes:

>> [0]PETSC ERROR: Petsc has generated inconsistent data!
>> [0]PETSC ERROR: Unhandled case, must have at least two fields, not 1
>
>
> This can happen if you give fieldsplit options to a non-fieldsplit
> matrix/PC. So so calling XXXSetFromOptions with a KSP/PC and an AIJ Mat
> (ie, non-nested Mat)  and using a parameter like '-pc_fieldsplit_type
> schur', will give you this error.

It should not error.  FieldSplit existed years before MatNest and there
are lots of example that use it without MatNest (which is merely an
optimization, sometimes).

If you are getting this error, we need a complete stack trace and
instructions for how to reproduce (ideally using a PETSc example).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20131129/ec5c4b31/attachment.pgp>


More information about the petsc-users mailing list