FillPatchTwoLevels does not fill fine-level ghost cells – FPinfo shows no overlap detected #4502
-
Beta Was this translation helpful? Give feedback.
Answered by
WeiqunZhang
Jun 11, 2025
Replies: 1 comment 2 replies
-
The way you are building Geometry is incorrect. The fine level's Geometry should have the same RealBox as the coarse level. Its Geometry's domain box should be refined version of the coarse level's domain box. In your code the fine level's domain box only covers the middle of the domain. You should think Geometry's domain box as if we have refinement everywhere. You could build your fine level's geometry by calling |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Afraid31
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The way you are building Geometry is incorrect. The fine level's Geometry should have the same RealBox as the coarse level. Its Geometry's domain box should be refined version of the coarse level's domain box. In your code the fine level's domain box only covers the middle of the domain. You should think Geometry's domain box as if we have refinement everywhere.
You could build your fine level's geometry by calling
Geometry refine (Geometry const& crse, int rr)
.