[petsc-users] A few questions about hdf5 viewer

Jed Brown jedbrown at mcs.anl.gov
Thu Jan 19 17:30:48 CST 2012


On Thu, Jan 19, 2012 at 17:26, Mohamad M. Nasr-Azadani <mmnasr at gmail.com>wrote:

> I use only one DA parallel layout for my problem in spite of the fact that
> I use MAC-staggered grid (I added one extra cell to the end of the domain
> in each direction so that I overcome the difficulty of one extra cell
> associated with each velocity in the corresponding direction, i.e. one
> extra u-grid exists in x-direction or one extra v-grid exists in
> y-direction).
> So, the vectors (global and locals) are derived from same DA but they do
> not refer to the same physical location.
>

This is fine, but you will have to manage coordinates yourself. I would
create a DMDA with similar layout to the "solution" DMDA to hold the
coordinates. You could even just create this thing for viewing. Then put
your local coordinates into its global vector and view that.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120119/04956938/attachment.htm>


More information about the petsc-users mailing list