[petsc-users] DM_BOUNDARY_GHOSTED
Matthew Knepley
knepley at gmail.com
Tue Feb 18 06:42:22 CST 2020
On Tue, Feb 18, 2020 at 6:03 AM David Scott <d.scott at epcc.ed.ac.uk> wrote:
> Hello,
>
> I wish to solve a channel flow problem with different boundary
> conditions. In the streamwise direction I may have periodic or
> inlet/outlet BCs. I would like to make my code for the two cases as
> similar as possible. If I use DM_BOUNDARY_PERIODIC then when performing
> a linear solve the ghost values will be set automatically. For the
> inlet/outlet case can I use DM_BOUNDARY_GHOSTED instead and somehow
> arrange for values that I specify to be placed in the ghost locations?
>
Yes, that is the intent.
Thanks,
Matt
> Thanks,
>
> David
>
> The University of Edinburgh is a charitable body, registered in Scotland,
> with registration number SC005336.
>
--
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.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200218/adc0bf5d/attachment.html>
More information about the petsc-users
mailing list