Hi,<br>  I&#39;m trying to use DMMG to solve linear Stokes flow discretised with finite elements.<br>Does anyone know how to specify different matrices for the matrix associated with the linear system and the matrix used to construct the preconditioner? Ie, like choosing a different Amat and Bmat with KSPSetOperators(). <br>
<br>In looking at DMMGSetKSP(), I don&#39;t see how this is possible. DMMG seems to generate the operator B via DMGetMatrix(), and then sets J equal to B. A dirty hack around the problem seemed to be to used PCDMMG, but I think I should be able to define different A and B mat&#39;s with DMMG directly.<br>
<br>I also noted that PCDMMG does not appear to be a registered PC implementation in petsc 3. <br><br>Thanks in advance,<br>  Dave<br><br><br><br>