[petsc-users] General question about a structured non-uniform grid

Matthew Knepley knepley at gmail.com
Fri Sep 26 11:58:23 CDT 2014


On Fri, Sep 26, 2014 at 11:52 AM, John Alletto <4bikerboyjohn at gmail.com>
wrote:

>
>
> All,
>
> I have a general question about a structured non-uniform grid.
>
> I have set the coordinates X,Y,Z in my code by first calling
> setUniformGrid and then by setting the coordinates.
> I have printed out the coordinates and those are as expected.
>
> 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.
>
> 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 ?
>

The code that evaluates residuals is all written by the user, so PETSc is
not doing anything with the coordinates.
In our examples, we pull out the coordinates for adjacent nodes and take
the difference.

   Matt


> Many Thanks in Advance
> John
>
>
>
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140926/b50a5acd/attachment.html>


More information about the petsc-users mailing list