Identifying the face which requires communicated data for computation

30 views
Skip to first unread message

Vidyesh Dapse

unread,
Apr 20, 2023, 4:57:23 AM4/20/23
to deal.II User Group
Hello everyone.
I am working on the discontinuous-Galerkin solver, which is described in tutorial step-76. In solver, time stepping is performed using the Low Storage Runge Kutta method. The stage-wise computation is performed using loop_cell_centric(). The solver uses MatrixFree class. I understood that computation is divided into 3 parts to make computation-communication overlap possible.

I want a method that can give me a flag indicating "whether a given face of a particular cell requires ghost data for computation of face integral?"

Thanks a lot in advance for suggestions!

Wolfgang Bangerth

unread,
Apr 20, 2023, 8:38:05 PM4/20/23
to dea...@googlegroups.com
On 4/20/23 02:57, Vidyesh Dapse wrote:
>
> I want a method that can give me a flag indicating "whether a given face of a
> particular cell requires ghost data for computation of face integral?"

This can only happen if you are on a locally owned cell and the neighboring
cell (across from the face you are considering) is a ghost cell. So the
condition would be
if (cell->is_locally_owned() && cell->neighbor(f)->is_ghost())
or something like this.

Best
W.

--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/


Reply all
Reply to author
Forward
0 new messages