Replies: 1 comment
-
|
You could use This shows how to use -Andrew |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I’m working on implementing a refinement criterion in
errorEst()that tags only the cells near a set of boundary points, rather than tagging all cells inside a large bounding box.In my
AmrLevelsetup, there are four levels of refinement. Previously, I used the following approach:Here,
IBPis a user-defined class derived fromAmrParticleContainer.Its member function
ComputeBoundary()computes the minimum and maximum particle coordinates in each dimension (i.e., the bounding box of all particles).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?
Should I loop over the boundary point list directly inside the GPU kernel, or is there a more efficient way to mark nearby cells?
Thanks in advance for any suggestions!
Beta Was this translation helpful? Give feedback.
All reactions