-
Notifications
You must be signed in to change notification settings - Fork 83
Generify hydro MOL for anisotropic EB #967
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of the diffs look like they are EB cases that have machine precision changes, which is reasonable to me. But the sod-4
case has bigger diffs. I believe this case tests coarse/fine crossing the EB. I am not sure why that would be affected, but I don't think we should merge this without understanding those diffs.
amrex::Abort( | ||
"dx != dy != dz not supported with pc_fill_bndry_grad_stencil_quadratic"); | ||
} | ||
const amrex::Real area = std::pow(dx[0], AMREX_SPACEDIM - 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these still dx[0]
- maybe they should be dx_max
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't dealt with the grad stencils so I left them as they were. I just changed the call signature to take in the dx array, so that I can change it later. Basically making it more explicit where things will need to change.
but don't actually let anyone use it because there are issues I think in amrex EB routines (redistribution) that I haven't fully investigated. But hydro MOL works. And this doesn't do EB diffusion either. But it's a step in the right direction.