<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Aug 4, 2016 at 2:43 AM, Mark Adams <span dir="ltr"><<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">We are pushing the bounds of -snes_fd and I wanted to understand what<br>
we can expect. We do not use a DM. I assume FD has to apply the<br>
operator N times. I don't see how you can color unless we give SNES a<br>
graph (in a DM). Am I missing something?<br></blockquote><div><br></div><div>Nope, it needs some idea of connectivity to color.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
If not, I could construct a symmetric matrix that would be, I think, a<br>
"safe" graph to use for coloring. Is there an method (or example code)<br>
to get SNES to use that for a coloring? Like a DM constructor that<br>
takes a graph in a Mat.<br>
</blockquote></div><br>Okay, there is </div><div class="gmail_extra"><br></div><div class="gmail_extra"> -snes_fd_color -snes_fd_color_use_mat -mat_coloring_type greedy</div><div class="gmail_extra"><br></div><div class="gmail_extra">which takes a properly preallocated matrix.</div><div class="gmail_extra"><br></div><div class="gmail_extra"> Matt<br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div>
</div></div>