<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; "><br>
  if (sml_mype/sml_pe_per_plane .gt. 0) then ! not first, no monitor<br>
     call SNESMonitorCancel(solver%snes,ierr)<br>
     CHKERRQ(ierr)<br>
     call SNESGetKSP(solver%snes,ksp,ierr)<br>
     CHKERRQ(ierr)<br>
     call KSPMonitorCancel(ksp,ierr)<br>
     CHKERRQ(ierr)<br>
  endif<br>
<br>
First, a quick question: do I want to call DMSetFromOptions here (first line)?<br></blockquote><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; "><br>
I want to get the two KSP solvers inside of what I know is a fieldsplit PC but when I get the PC in the above code and try to get the KSPs I get a segv.  I thought I might call </blockquote><div><br></div><div>Why not just give different options prefixes and do it from the command line?</div>
</div></div></div></blockquote><br></div><div>This would require two sets of input parameters which would defeat the purpose.  I'm trying to debug parameters so I would also have to verify the the input parameters for the two solvers are identical (tedious and error prone).  I can afford to look at only one solve because the rest are similar but not exactly the same (different RHS only).  This would also break everyones RC files.</div><div><br></div><div>Perhaps I use PetscOptionsClearValue, on these processors, before calling XXXGetOptions.</div></body></html>