[petsc-users] fieldsplit: Unhandled case, must have at least two fields, not 1!
Mark Adams
mfadams at lbl.gov
Mon Dec 2 07:53:28 CST 2013
>
>
>
> if (i == 0) {
> for (f = 0; f < numFields; ++f) {
> ierr = PCFieldSplitSetIS(pc, fieldNames[f],
> fields[f]);CHKERRQ(ierr);
> ierr = PetscFree(fieldNames[f]);CHKERRQ(ierr);
> ierr = ISDestroy(&fields[f]);CHKERRQ(ierr);
> }
>
> numFields should be 2. Compare to src/snes/examples/tutorials/ex28.c
> (adapting runex28_3),
>
The matrix/solver just has one field. The error comes from giving it field
split parameters by mistake.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20131202/5c743f51/attachment-0001.html>
More information about the petsc-users
mailing list