Ghost cells in a linear system solve #3367
Answered
by
WeiqunZhang
ZiyangHuang
asked this question in
Q&A
-
I am using the "MLABecLaplacian" to solve my problem that has either periodic or homogeneous Neumann BC. Does the "multifab" that stores the solution need any ghost cells? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
WeiqunZhang
Jun 14, 2023
Replies: 1 comment
-
No, the solution MultiFab is not required to have ghost cells. If it does not have exactly one ghost cell, the solver will create a temporary internally. So for performance, it might be slightly better to have one ghost cell. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ZiyangHuang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, the solution MultiFab is not required to have ghost cells. If it does not have exactly one ghost cell, the solver will create a temporary internally. So for performance, it might be slightly better to have one ghost cell.