Skip to content
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

fix RKL in grids with small spacing #323

Merged
merged 6 commits into from
Feb 21, 2025
Merged

fix RKL in grids with small spacing #323

merged 6 commits into from
Feb 21, 2025

Conversation

glesur
Copy link
Contributor

@glesur glesur commented Feb 19, 2025

fix a bug that could lead to Nans when using the RKL scheme on grids with small grid spacing (<1e-5) as discussed in #322

additionally correct the curvature terms on cell-centered B that were not properly taken into account in the RKL loop. This can affect the outcome of simulations using the RKL scheme for Ohmic or Ambipolar diffusion in 2.5D non-cartesian models (NB: full 3D models are not affected since B is entirely computed by the CT scheme in these cases)

@glesur glesur added the bug Something isn't working label Feb 19, 2025
@glesur glesur changed the title fixRKLSmallGrids fix RKL in grids with small spacing Feb 20, 2025
@glesur glesur merged commit ecb9d2d into develop Feb 21, 2025
38 checks passed
@glesur glesur deleted the fixRKLSmallGridSpacing branch February 21, 2025 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant