Replies: 9 comments 36 replies
-
|
Have you tried |
Beta Was this translation helpful? Give feedback.
-
|
As for improperly nested grids, is it improper in FillPatch functions or somewhere else? If it's in FillPatch, there is a function for checking. |
Beta Was this translation helpful? Give feedback.
-
|
I had not tried And yeah, it's improper in fillpatch - we've used the function you pointed out and it confirms it. The question is what's the proper knob to turn to address this, or alternatively, is there a way to design my error tagging code to ensure a safe behavior? |
Beta Was this translation helpful? Give feedback.
-
|
Another question -- do you know whether this case (where the proper nesting is violated) happens when only the green level is being re-created, or are multiple levels being re-created during this step? |
Beta Was this translation helpful? Give feedback.
-
|
I think I have found the issue. It's a bug in amrex. A few years ago, we were trying to be more efficient, but unfortunately I broke it. When a fine level Thanks for reporting the issue! We have not noticed it before because applications usually do regridding every two steps on every coarse level. But with regridding every ten level 0 steps and a deep hierarchy, it's more likely to have the issue. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Thanks so much Weiqun! It looks like this fixes our issue - our tests have been running just fine with the modification. |
Beta Was this translation helpful? Give feedback.
-
|
@WeiqunZhang - I wanted to give you a quick follow-up. We've been running a range of cases with increasingly deep hierarchy, and so far everything has been good. Thanks again for your fix! |
Beta Was this translation helpful? Give feedback.
-
|
Hi @WeiqunZhang! Very sorry to be revisiting this one... We've hit a strange crash in the MLMG solver in an incompressible sim, using the same regridding strategy you've seen from us before (regrid every 10 steps, fairly deep hierarchy). Not fully diagnosed yet, but it's looking like regridding is the culprit, and the key clue is that setting The one big difference from before: this time we have active, complex regridding across a periodic direction. Does that ring any bells? Any reason to think your fix could be insufficient across periodic boundaries? |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
As I'm pushing towards more refinement levels in my amrcore-based simulations (say 8 or 9 levels), I'm finding that regridding is increasingly likely to generate improperly nested grids. My
blocking_factor=8withnghost=2satisfies the formula from #2140. I've tried playing around with some parameters (specificallyn_error_buf), but I haven't had much success (i.e., increasingn_error_bufdelays but doesn't solver the problem). I also notice that MakeNewGrid's nesting check is compiled out - is it supposed to be guaranteed by design? My intuition tells me that it's a question of error tagging: there may be implicit requirements in how we tag cells for refinement that are not explicitly enforced by AMReX and left for the user to address. However, I'm not certain what these are.What are the best practices for ensuring proper nesting in deep hierarchies? Are there parameter choices that help, or is it common practice to ensure consistency across levels in the tagging prior to feeding tags to AMReX?
Beta Was this translation helpful? Give feedback.
All reactions