<div dir="ltr"><div class="gmail_quote">On Tue, Mar 29, 2011 at 15:29, Thomas Witkowski <span dir="ltr"><<a href="mailto:thomas.witkowski@tu-dresden.de">thomas.witkowski@tu-dresden.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Is there any example which makes use of it?</blockquote></div><br><div>src/snes/examples/tutorials/ex28.c is a (contrived) multi-physics prototype that uses MatNest tranparently if you run with -pack_dm_mat_type nest (currently, you should add -pc_type fieldsplit -pc_fieldsplit_type additive because off-diagonal blocks are not automatically preallocated).</div>
<div><br></div><div>There are also two tests that use the low-level API:</div><div><br></div><div><div>$ grep -l MatNest src/**/tests/*.c</div><div>src/ksp/ksp/examples/tests/ex22.c</div><div>src/snes/examples/tests/ex17.c</div>
</div></div>