<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Ubuntu">I added KSPSetDM() and now the error I receive
is:<br>
<br>
[0]PETSC ERROR: --------------------- Error Message
------------------------------------<br>
[0]PETSC ERROR: No support for this operation for this object
type!<br>
[0]PETSC ERROR: For coloring efficiency ensure number of grid
points in X is divisible<br>
by 2*stencil_width + 1<br>
!<br>
[0]PETSC ERROR:
------------------------------------------------------------------------<br>
[0]PETSC ERROR: Petsc Release Version 3.3.0, Patch 3, Wed Aug 29
11:26:24 CDT 2012<br>
[0]PETSC ERROR: See docs/changes/index.html for recent updates.<br>
[0]PETSC ERROR: See docs/faq.html for hints about trouble
shooting.<br>
[0]PETSC ERROR: See docs/index.html for manual pages.<br>
[0]PETSC ERROR:
------------------------------------------------------------------------<br>
[0]PETSC ERROR: ./hit on a named nid25119 by Unknown Fri May 17
17:41:05 2013<br>
[0]PETSC ERROR: Libraries linked from<br>
[0]PETSC ERROR: Configure run at<br>
[0]PETSC ERROR: Configure options<br>
[0]PETSC ERROR:
------------------------------------------------------------------------<br>
[0]PETSC ERROR: DMCreateColoring_DA_3d_MPIAIJ() line 288 in
src/dm/impls/da/fdda.c<br>
[0]PETSC ERROR: DMCreateColoring_DA() line 172 in
src/dm/impls/da/fdda.c<br>
[0]PETSC ERROR: DMCreateColoring() line 709 in
src/dm/interface/dm.c<br>
[0]PETSC ERROR: DMComputeJacobian() line 2206 in
src/dm/interface/dm.c<br>
[0]PETSC ERROR: KSPSetUp() line 228 in
src/ksp/ksp/interface/itfunc.c<br>
<br>
<br>
My 3D grid is composed by 256^3 nodes, I am using 4 processors and
the the DMDA is initialized as:<br>
<br>
<br>
call DMDACreate3d( PETSC_COMM_WORLD , DMDA_BOUNDARY_PERIODIC
, DMDA_BOUNDARY_PERIODIC, &<br>
& DMDA_BOUNDARY_PERIODIC ,
DMDA_STENCIL_STAR, 256 , 256 , 256 , 2 , 2 , 1, 1 , 1 , &<br>
& 128 , 128 , 256, da , ierr)<br>
<br>
<br>
Thank you very much for your help.<br>
<br>
Michele<br>
<br>
<br>
</font>
<div class="moz-cite-prefix">On 05/17/2013 03:16 PM, Jed Brown
wrote:<br>
</div>
<blockquote cite="mid:87a9ntntfg.fsf@mcs.anl.gov" type="cite">
<pre wrap="">Michele Rosso <a class="moz-txt-link-rfc2396E" href="mailto:mrosso@uci.edu"><mrosso@uci.edu></a> writes:
</pre>
<blockquote type="cite">
<pre wrap="">Thank you.
I tried to run with
-pc_type mg -pc_mg_levels 3
</pre>
</blockquote>
<pre wrap="">
Call KSPSetDM(). Look at src/ksp/ksp/examples/tutorials/ex45.c or
src/snes/examples/tutorials/ex5.c
</pre>
</blockquote>
<br>
</body>
</html>