[petsc-dev] Using DMPlexConstructGhostCells

Matthew Knepley knepley at gmail.com
Mon Mar 4 13:16:44 CST 2013


On Sun, Mar 3, 2013 at 10:23 PM, Garnet Vaz <garnet.vaz at gmail.com> wrote:

> Hi,
>
> I am trying to use the function DMPlexConstructGhostCells to create
> some ghost cell information. Like in ex11 of dev-tutorials I need to
> access the centroid of the boundary cell to compute the distance.
> Following the example I see the following being done:
>
> Line 2209: DMPlexConstructGhostCells(dm, NULL, &user->numGhostCells, &gdm);
>
> The documentation says that the label name could be auto generated.
> Hence I tried passing NULL as above. This does not seem to work. I am
>

I have fixed the documentation.


> working on a 2d triangulation created from Triangle and distributed
> using chaco with an overlap of 1.
>

What do you mean by not work? Is your mesh modified? You can check
using DMView(gdm, PETSC_VIEWER_STDOUT_WORLD).

  Thanks,

     Matt


> Thanks.
>
> --
> Regards,
> Garnet
>



-- 
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-dev/attachments/20130304/24c0d47b/attachment.html>


More information about the petsc-dev mailing list