<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <font face="Ubuntu">I run with<br>
      <br>
      -pc_type gamg  -options_left <br>
      <br>
      and I get the error:<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 nid22318 by Unknown Fri May 17
      19:21:25 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>
      The code is calling </font><br>
    <pre wrap="">KSPSetFromOptions()
</pre>
    <font face="Ubuntu"><br>
    </font>
    <div class="moz-cite-prefix">On 05/17/2013 05:10 PM, Jed Brown
      wrote:<br>
    </div>
    <blockquote cite="mid:87mwrtm9l0.fsf@mcs.anl.gov" type="cite">
      <pre wrap="">Please always use "reply-all" so that your messages go to the list.
This is standard mailing list etiquette.  It is important to preserve
threading for people who find this discussion later and so that we do
not waste our time re-answering the same questions that have already
been answered in private side-conversations.  You'll likely get an
answer faster that way too.

Michele Rosso <a class="moz-txt-link-rfc2396E" href="mailto:mrosso@uci.edu"><mrosso@uci.edu></a> writes:

</pre>
      <blockquote type="cite">
        <pre wrap="">If you are referring to -pc_type gamg, I tried it, but I got the same 
error message
(For coloring efficiency ensure number of grid points in X is divisible 
by 2*stencil_width + 1)
</pre>
      </blockquote>
      <pre wrap="">
The option could not have been used.  Always send the ENTIRE error
message.  Is the code calling KSPSetFromOptions()?  Run with
-options_left to see if any options did not get used.

</pre>
      <blockquote type="cite">
        <pre wrap="">On 05/17/2013 04:49 PM, Jed Brown wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">
Read my first message

On May 17, 2013 6:47 PM, "Michele Rosso" <<a class="moz-txt-link-abbreviated" href="mailto:mrosso@uci.edu">mrosso@uci.edu</a> 
<a class="moz-txt-link-rfc2396E" href="mailto:mrosso@uci.edu"><mailto:mrosso@uci.edu></a>> wrote:

    Ok, I will give a try to AMG then. What is it exactly?
    Thank you!

    On 05/17/2013 04:25 PM, Jed Brown wrote:
</pre>
          <blockquote type="cite">
            <pre wrap="">    Michele Rosso<a class="moz-txt-link-rfc2396E" href="mailto:mrosso@uci.edu"><mrosso@uci.edu></a>  <a class="moz-txt-link-rfc2396E" href="mailto:mrosso@uci.edu"><mailto:mrosso@uci.edu></a>  writes:

</pre>
            <blockquote type="cite">
              <pre wrap="">    So should I always use an odd number of grid points?
    There is no way around this?
</pre>
            </blockquote>
            <pre wrap="">    If you want to use regular geometric coarsening, then yes.  That *is*
    regular node-centered coarsening.  Just consider the base case of one
    element:


       o ------- o

    Split that in two:

       o -- o -- o

    Look, an odd number of vertices, and as we keep refining, it will stay
    odd.

    You can use AMG or write your own interpolation if you want irregular coarsening.

</pre>
          </blockquote>
          <pre wrap="">
</pre>
        </blockquote>
      </blockquote>
      <pre wrap="">
</pre>
    </blockquote>
    <br>
  </body>
</html>