[petsc-users] Accessing a field values of Staggered grid

Matthew Knepley knepley at gmail.com
Tue Feb 13 15:17:28 CST 2018


On Tue, Feb 13, 2018 at 3:21 PM, Mohammad Hassan Baghaei <
mhbaghaei at mail.sjtu.edu.cn> wrote:

> Hi
>
> I am filling the local vector from dm , has a section layout. The thing is
> I want to know how I can see the field variable values defined on edges,
> the staggered grid. In fact, Whenever I output to VTK in preview, I would
> be able to see the main grid. But the values which are defined on edges, I
> could not see them and that makes me unsure about the way I fill the local
> vector. How I would be babe to check the field value on staggered grid?
>

VTK does not have a way to specify data on edges, only on cells or vertices.

  Thanks,

    Matt


> Thanks
>
> Amir
>
-- 
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

https://www.cse.buffalo.edu/~knepley/ <http://www.caam.rice.edu/~mk51/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20180213/888ced2c/attachment.html>


More information about the petsc-users mailing list