On Sat, Aug 27, 2011 at 12:22, Milan Mitrovic <milan.v.mitrovic at 
gmail.com>wrote:

> [1]PETSC ERROR: Unknown Mat type given: same!


What kind of Mat were you assembling? Are you passing any other flags? What
does your code assemble for the Jacobian? I think the Jacobian you passed in
does not implement MatDuplicate(). I just changed MatConvert() to be more
robust in petsc-dev.

With 3.1, you can try -pc_type lu -snes_monitor -ksp_monitor_singular_value.
Also compare output with -snes_mf_operator. I think your Jacobian may be
singular and this should help figure that out.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110827/ab29fb10/attachment.htm>

Reply via email to