[petsc-users] Solving Poisson equation with multigrid

Michele Rosso mrosso at uci.edu
Fri May 17 17:50:09 CDT 2013


I added KSPSetDM() and now the error I receive is:

[0]PETSC ERROR: --------------------- Error Message 
------------------------------------
[0]PETSC ERROR: No support for this operation for this object type!
[0]PETSC ERROR: For coloring efficiency ensure number of grid points in 
X is divisible
                  by 2*stencil_width + 1
!
[0]PETSC ERROR: 
------------------------------------------------------------------------
[0]PETSC ERROR: Petsc Release Version 3.3.0, Patch 3, Wed Aug 29 
11:26:24 CDT 2012
[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: ./hit on a  named nid25119 by Unknown Fri May 17 
17:41:05 2013
[0]PETSC ERROR: Libraries linked from
[0]PETSC ERROR: Configure run at
[0]PETSC ERROR: Configure options
[0]PETSC ERROR: 
------------------------------------------------------------------------
[0]PETSC ERROR: DMCreateColoring_DA_3d_MPIAIJ() line 288 in 
src/dm/impls/da/fdda.c
[0]PETSC ERROR: DMCreateColoring_DA() line 172 in src/dm/impls/da/fdda.c
[0]PETSC ERROR: DMCreateColoring() line 709 in src/dm/interface/dm.c
[0]PETSC ERROR: DMComputeJacobian() line 2206 in src/dm/interface/dm.c
[0]PETSC ERROR: KSPSetUp() line 228 in src/ksp/ksp/interface/itfunc.c


My 3D grid is composed by 256^3 nodes, I am using 4 processors and the 
the DMDA is initialized as:


     call DMDACreate3d( PETSC_COMM_WORLD ,   DMDA_BOUNDARY_PERIODIC , 
DMDA_BOUNDARY_PERIODIC,     &
                     & DMDA_BOUNDARY_PERIODIC , DMDA_STENCIL_STAR,    
256 , 256 , 256 , 2 , 2 , 1,  1 , 1 , &
                     & 128 , 128 , 256,  da , ierr)


Thank you very much for your help.

Michele


On 05/17/2013 03:16 PM, Jed Brown wrote:
> Michele Rosso <mrosso at uci.edu> writes:
>
>> Thank you.
>> I tried to run with
>>
>> -pc_type mg -pc_mg_levels 3
> Call KSPSetDM().  Look at src/ksp/ksp/examples/tutorials/ex45.c or
> src/snes/examples/tutorials/ex5.c
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130517/c5afffe5/attachment.html>


More information about the petsc-users mailing list