[petsc-dev] Are odd grid numbers intentionally required for structured interpolation/refinement in 3.2.2?

Aron Ahmadia aron.ahmadia at kaust.edu.sa
Sun Oct 9 05:23:01 CDT 2011


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.

--- petsc-ex50/ex50 ‹master*➔ M⁇› » mpirun -n 4 ./ex50 -da_grid_x 65
-da_grid_y 65 -pc_type mg -pc_mg_levels 3
lid velocity = 0.000236686, prandtl # = 1, grashof # = 1
Number of Newton iterations = 6

./ex50 -da_grid_x 64 -da_grid_y 64 -pc_type mg -pc_mg_levels 2

lid velocity = 0.000244141, prandtl # = 1, grashof # = 1
[0]PETSC ERROR: --------------------- Error Message
------------------------------------
[0]PETSC ERROR: Arguments are incompatible!
[0]PETSC ERROR: Ratio between levels: (mx - 1)/(Mx - 1) must be integer: mx
64 Mx 32!
[0]PETSC ERROR:
------------------------------------------------------------------------
[0]PETSC ERROR: Petsc Release Version 3.2.0, Patch 3, Fri Sep 30 10:28:33
CDT 2011
[0]PETSC ERROR: See docs/changes/index.html for recent updates.
[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
[0]PETSC ERROR: See docs/index.html for manual pages.
[0]PETSC ERROR:
------------------------------------------------------------------------
[0]PETSC ERROR: ./ex50 on a arch-darw named peregrine.local by aron Sun Oct
 9 13:15:29 2011
[0]PETSC ERROR: Libraries linked from
/Users/aron/sandbox/petsc-3.2-p3/arch-darwin-c-debug/lib
[0]PETSC ERROR: Configure run at Sun Oct  9 00:16:45 2011
[0]PETSC ERROR: Configure options --with-shared-libraries=1 --with-fortran=0
[0]PETSC ERROR:
------------------------------------------------------------------------
[0]PETSC ERROR: DMGetInterpolation_DA_2D_Q1() line 272 in
/Users/aron/sandbox/petsc-3.2-p3/src/dm/impls/da/dainterp.c
[0]PETSC ERROR: DMGetInterpolation_DA() line 1018 in
/Users/aron/sandbox/petsc-3.2-p3/src/dm/impls/da/dainterp.c
[0]PETSC ERROR: DMGetInterpolation() line 468 in
/Users/aron/sandbox/petsc-3.2-p3/src/dm/interface/dm.c
[0]PETSC ERROR: PCSetUp_MG() line 521 in
/Users/aron/sandbox/petsc-3.2-p3/src/ksp/pc/impls/mg/mg.c
[0]PETSC ERROR: PCSetUp() line 819 in
/Users/aron/sandbox/petsc-3.2-p3/src/ksp/pc/interface/precon.c
[0]PETSC ERROR: KSPSetUp() line 260 in
/Users/aron/sandbox/petsc-3.2-p3/src/ksp/ksp/interface/itfunc.c
[0]PETSC ERROR: KSPSolve() line 379 in
/Users/aron/sandbox/petsc-3.2-p3/src/ksp/ksp/interface/itfunc.c
[0]PETSC ERROR: SNES_KSPSolve() line 3396 in
/Users/aron/sandbox/petsc-3.2-p3/src/snes/interface/snes.c
[0]PETSC ERROR: SNESSolve_LS() line 190 in
/Users/aron/sandbox/petsc-3.2-p3/src/snes/impls/ls/ls.c
[0]PETSC ERROR: SNESSolve() line 2676 in
/Users/aron/sandbox/petsc-3.2-p3/src/snes/interface/snes.c
[0]PETSC ERROR: main() line 161 in src/snes/examples/tutorials/ex50.c
[peregrine.local:75270] MPI_ABORT invoked on rank 0 in communicator
MPI_COMM_WORLD with errorcode 75
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20111009/ca562a5c/attachment.html>


More information about the petsc-dev mailing list