[petsc-users] Using DM_BOUNDARY_GHOSTED in DMSTAG
Colton Bryant
coltonbryant2021 at u.northwestern.edu
Wed Aug 14 17:36:41 CDT 2024
Hello,
I'm trying to understand the use of DM_BOUNDARY_GHOSTED and am a little
confused. Is there any way for the linear solver to access and manipulate
the ghost point value during the solve? I currently have a code using
DM_BOUNDARY_PERIODIC and at the periodic boundary I simply apply the same
discretization as I do everywhere else and as I understand it the value at
e.g. i=-1 is set automatically by the periodic boundary condition. I would
like to use DM_BOUNDARY_GHOSTED to set my own condition by which the point
at i=-1 is set (a Neumann type condition). I have seen some matrix free
examples but is there an easy way to "add" such a condition to the linear
system in this case?
Thanks for any help you can provide.
Best,
Colton Bryant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240814/a6b0939f/attachment.html>
More information about the petsc-users
mailing list