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

handle divide by 0 in signed distance function #3279

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

drangara
Copy link
Contributor

@drangara drangara commented Apr 27, 2023

Summary

In some cases we were hitting a division by c_norm = 0. This attempts to handle those cases.

Additional background

Checklist

The proposed changes:

  • fix a bug or incorrect behavior in AMReX
  • add new capabilities to AMReX
  • changes answers in the test suite to more than roundoff level
  • are likely to significantly affect the results of downstream AMReX users
  • include documentation in the code and/or rst files, if appropriate

@wfullmer
Copy link

it has fixed my issue @drangara 🙏

@WeiqunZhang WeiqunZhang merged commit 40b0ed5 into AMReX-Codes:development Apr 27, 2023
guj pushed a commit to guj/amrex that referenced this pull request Jul 13, 2023
In some cases we were hitting a division by `c_norm = 0`. This attempts
to handle those cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants