<div dir="ltr"><span style="color:rgb(80,0,80)">PCFieldSplitSetDefaults is called from </span>PCSetUpOnBlocks and there is only one block. So it is called from a subpc, which does not have a DM and it's too late anyway.<div><div><br></div><div>#14 main (argc=<optimized out>, argv=<optimized out>) at /gpfs/alpine/csc314/scratch/adams/petsc/src/ts/utils/dmplexlandau/tutorials/ex2.c:774 (at 0x0000000010002a28)<br>#13 TSSolve (ts=0x83638480, u=0x8338de50) at /gpfs/alpine/csc314/scratch/adams/petsc/src/ts/interface/ts.c:4168 (at 0x00002000015e60e4)<br>#12 TSStep (ts=0x83638480) at /gpfs/alpine/csc314/scratch/adams/petsc/src/ts/interface/ts.c:3771 (at 0x00002000015e416c)<br>#11 TSStep_ARKIMEX (ts=0x83638480) at /gpfs/alpine/csc314/scratch/adams/petsc/src/ts/impls/arkimex/arkimex.c:845 (at 0x000020000165e97c)<br>#10 SNESSolve (snes=0x83639d20, b=0x0, x=0x8338f320) at /gpfs/alpine/csc314/scratch/adams/petsc/src/snes/interface/snes.c:4563 (at 0x00002000014f2b98)<br>#9 SNESSolve_NEWTONLS (snes=0x83639d20) at /gpfs/alpine/csc314/scratch/adams/petsc/src/snes/impls/ls/ls.c:225 (at 0x0000200001553d34)<br>#8 KSPSolve (ksp=0x8363a610, b=0x8363db00, x=0x83642350) at /gpfs/alpine/csc314/scratch/adams/petsc/src/ksp/ksp/interface/itfunc.c:963 (at 0x000020000138987c)<br>#7 KSPSolve_Private (ksp=0x8363a610, b=0x8363db00, x=0x83642350) at /gpfs/alpine/csc314/scratch/adams/petsc/src/ksp/ksp/interface/itfunc.c:727 (at 0x0000200001386d70)<br>#6 KSPSetUpOnBlocks (ksp=0x8363a610) at /gpfs/alpine/csc314/scratch/adams/petsc/src/ksp/ksp/interface/itfunc.c:214 (at 0x0000200001381a6c)<br>#5 PCSetUpOnBlocks (pc=0x8338afe0) at /gpfs/alpine/csc314/scratch/adams/petsc/src/ksp/pc/interface/precon.c:1046 (at 0x0000200001333aa0)<br>#4 PCSetUpOnBlocks_ASM (pc=0x8338afe0) at /gpfs/alpine/csc314/scratch/adams/petsc/src/ksp/pc/impls/asm/asm.c:437 (at 0x00002000012cb87c)<br>#3 KSPSetUp (ksp=0x836486c0) at /gpfs/alpine/csc314/scratch/adams/petsc/src/ksp/ksp/interface/itfunc.c:406 (at 0x0000200001383258)<br>#2 PCSetUp (pc=0x83645200) at /gpfs/alpine/csc314/scratch/adams/petsc/src/ksp/pc/interface/precon.c:1015 (at 0x00002000013335f0)<br>#1 PCSetUp_FieldSplit (pc=0x83645200) at /gpfs/alpine/csc314/scratch/adams/petsc/src/ksp/pc/impls/fieldsplit/fieldsplit.c:614 (at 0x00002000012a27f4)<br>#0 PCFieldSplitSetDefaults (pc=0x83645200) at /gpfs/alpine/csc314/scratch/adams/petsc/src/ksp/pc/impls/fieldsplit/fieldsplit.c:398 (at 0x000020000129f854)<br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 31, 2020 at 1:56 PM Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Thu, Dec 31, 2020 at 1:50 PM Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Thu, Dec 31, 2020 at 1:12 PM Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Thu, Dec 31, 2020 at 12:46 PM Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Still missing something:</div></div></blockquote><div><br></div><div>You can get in the debugger in PCFieldSplitSetDefaults(), but the most likely thing is that pc->dm == NULL here, </div></div></div></blockquote><div><br></div><div>the setuponblocks PC does have a DM and it is a cusparse mattype.</div></div></div></blockquote><div><br></div><div>Then go in the debugger and see why that option is not being used.</div><div><br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div>so the PC is not getting the DM.</div><div>This does make some sense as you are doing ASM, which is ripping up the domain, so you might not want the same DM on the subproblem. I</div><div>am not sure what should be done here.</div><div><br></div></div></div>
</blockquote></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>
</blockquote></div>