<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Sep 26, 2014 at 11:52 AM, John Alletto <span dir="ltr"><<a href="mailto:4bikerboyjohn@gmail.com" target="_blank">4bikerboyjohn@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div><br></div><div><font size="5">All,</font></div><div><font size="5"><br></font></div><div><font size="5">I have a general question about a structured non-uniform grid.</font></div><div><font size="5"><br></font></div><div><font size="5">I have set the coordinates X,Y,Z in my code by first calling setUniformGrid and then by setting the coordinates.</font></div><div><font size="5">I have printed out the coordinates and those are as expected.</font></div><div><font size="5"><br></font></div><div><font size="5">I an non-uniform grid the code will need a specific delta_x delta_y and delta_z since they will differ through out the grid.</font></div><div><font size="5"><br></font></div><div><font size="5">Does PETSc take a derivative of the coordinates (by default) to get the list of delta’s or do I need to do something specific ?</font></div></div></blockquote><div><br></div><div>The code that evaluates residuals is all written by the user, so PETSc is not doing anything with the coordinates.</div><div>In our examples, we pull out the coordinates for adjacent nodes and take the difference.</div><div><br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><font size="5">Many Thanks in Advance</font></div><span class="HOEnZb"><font color="#888888"><div><font size="5">John</font></div><div><font size="5"><br></font></div><div><font size="5"><br></font></div><div><font size="5"><br></font></div></font></span></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>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>