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

Apply a floor to any conserved variable #292

Closed
wants to merge 30 commits into from

Conversation

helenarichie
Copy link
Collaborator

@helenarichie helenarichie commented Apr 28, 2023

This PR includes:

  • A function Apply_Conserved_Floor that takes int field_num and Real conserved_floor and applies that the values stored in the field_num position of the conserved variable array are never less than the value specified by conserved_floor
  • Application of this function for the dust build to prevent negative dust densities

I'm running a simulation where I know that the negative dust density issue occurs to check that this function works as expected, so I'll edit this comment once that's done and this is ready to merge.

@helenarichie helenarichie marked this pull request as ready for review April 28, 2023 20:51
@helenarichie helenarichie marked this pull request as draft May 1, 2023 17:08
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.

1 participant