Refinement Criterion Near Particles in errorEst() #4733
-
|
Hi everyone, I’m working on implementing a refinement criterion in In my Here, Now, I would like to modify this so that only the cells close to the boundary points (for example, within a few grid cells from each boundary point) are tagged for refinement. What’s the best way to achieve this in AMReX? Thanks in advance for any suggestions! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
You could use This shows how to use -Andrew |
Beta Was this translation helpful? Give feedback.
-
Something like |
Beta Was this translation helpful? Give feedback.
Something like
if ((std::abs(x-pbox_lo[0]) < width || std::abs(x-pbox_hi[0]) < width) && y-direction-test && z-direct-test)?