<div dir="ltr">Jed pointed out that I should be demo-ing ex50, not ex19, so I tried to port my stuff over. Oddly enough, if I am using 2^n grid spacing, everything falls over. 2^n+1 works, though, which seems non-obvious to me.<div>
<br></div><div><div>--- petsc-ex50/ex50 ‹master*➔ M⁇› » mpirun -n 4 ./ex50 -da_grid_x 65 -da_grid_y 65 -pc_type mg -pc_mg_levels 3</div><div>lid velocity = 0.000236686, prandtl # = 1, grashof # = 1</div><div>Number of Newton iterations = 6</div>
<div><div><br></div><div>./ex50 -da_grid_x 64 -da_grid_y 64 -pc_type mg -pc_mg_levels 2</div><div><br></div><div><div>lid velocity = 0.000244141, prandtl # = 1, grashof # = 1</div><div>[0]PETSC ERROR: --------------------- Error Message ------------------------------------</div>
<div>[0]PETSC ERROR: Arguments are incompatible!</div><div>[0]PETSC ERROR: Ratio between levels: (mx - 1)/(Mx - 1) must be integer: mx 64 Mx 32!</div><div>[0]PETSC ERROR: ------------------------------------------------------------------------</div>
<div>[0]PETSC ERROR: Petsc Release Version 3.2.0, Patch 3, Fri Sep 30 10:28:33 CDT 2011 </div><div>[0]PETSC ERROR: See docs/changes/index.html for recent updates.</div><div>[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.</div>
<div>[0]PETSC ERROR: See docs/index.html for manual pages.</div><div>[0]PETSC ERROR: ------------------------------------------------------------------------</div><div>[0]PETSC ERROR: ./ex50 on a arch-darw named peregrine.local by aron Sun Oct 9 13:15:29 2011</div>
<div>[0]PETSC ERROR: Libraries linked from /Users/aron/sandbox/petsc-3.2-p3/arch-darwin-c-debug/lib</div><div>[0]PETSC ERROR: Configure run at Sun Oct 9 00:16:45 2011</div><div>[0]PETSC ERROR: Configure options --with-shared-libraries=1 --with-fortran=0</div>
<div>[0]PETSC ERROR: ------------------------------------------------------------------------</div><div>[0]PETSC ERROR: DMGetInterpolation_DA_2D_Q1() line 272 in /Users/aron/sandbox/petsc-3.2-p3/src/dm/impls/da/dainterp.c</div>
<div>[0]PETSC ERROR: DMGetInterpolation_DA() line 1018 in /Users/aron/sandbox/petsc-3.2-p3/src/dm/impls/da/dainterp.c</div><div>[0]PETSC ERROR: DMGetInterpolation() line 468 in /Users/aron/sandbox/petsc-3.2-p3/src/dm/interface/dm.c</div>
<div>[0]PETSC ERROR: PCSetUp_MG() line 521 in /Users/aron/sandbox/petsc-3.2-p3/src/ksp/pc/impls/mg/mg.c</div><div>[0]PETSC ERROR: PCSetUp() line 819 in /Users/aron/sandbox/petsc-3.2-p3/src/ksp/pc/interface/precon.c</div><div>
[0]PETSC ERROR: KSPSetUp() line 260 in /Users/aron/sandbox/petsc-3.2-p3/src/ksp/ksp/interface/itfunc.c</div><div>[0]PETSC ERROR: KSPSolve() line 379 in /Users/aron/sandbox/petsc-3.2-p3/src/ksp/ksp/interface/itfunc.c</div>
<div>[0]PETSC ERROR: SNES_KSPSolve() line 3396 in /Users/aron/sandbox/petsc-3.2-p3/src/snes/interface/snes.c</div><div>[0]PETSC ERROR: SNESSolve_LS() line 190 in /Users/aron/sandbox/petsc-3.2-p3/src/snes/impls/ls/ls.c</div>
<div>[0]PETSC ERROR: SNESSolve() line 2676 in /Users/aron/sandbox/petsc-3.2-p3/src/snes/interface/snes.c</div><div>[0]PETSC ERROR: main() line 161 in src/snes/examples/tutorials/ex50.c</div><div>[peregrine.local:75270] MPI_ABORT invoked on rank 0 in communicator MPI_COMM_WORLD with errorcode 75</div>
</div></div></div></div>