Skip to content

Purpose of m_undrrelxr in AMReX_MLABecLaplacian.H #3530

Answered by WeiqunZhang
ankithadas asked this question in Q&A
Discussion options

You must be logged in to vote

m_undrrelxr is initialized here

MLCellLinOpT<MF>::prepareForSolve ()
, where it calls functions like
void mllinop_comp_interp_coef0_x (int side, int i, int j, int k, int blen,
.

It is used for convenience. For cells near the physical domain boundary or coarse/fine boundary, the stencil there is different. A normal 1d Laplacian stencil might be something like (1, -2, 1). But if the left point is outside a homogeneous Neumann boundary, the stencil becomes something like (N/A, -1, 1). In GSRB, -1 instead of -2 should be the…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ankithadas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants