Something like this?<div><br></div><div><a href="http://www.mcs.anl.gov/petsc/petsc-current/src/tao/constrained/examples/tutorials/toy.c.html">http://www.mcs.anl.gov/petsc/petsc-current/src/tao/constrained/examples/tutorials/toy.c.html</a><br><br>On Friday, October 21, 2016, Patrick Sanan <<a href="mailto:patrick.sanan@gmail.com">patrick.sanan@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Are there any examples already in PETSc or TAO that assemble such a<br>
system (which could thus be dumped)? SNES example ex73f90t assembles a<br>
non-symmetric KKT system.<br>
</blockquote></div>