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

Update Cell Averaging #357

Merged
merged 8 commits into from
Dec 13, 2023
Merged

Update Cell Averaging #357

merged 8 commits into from
Dec 13, 2023

Conversation

evaneschneider
Copy link
Collaborator

@evaneschneider evaneschneider commented Dec 8, 2023

This PR changes the way that cell averaging is done in the Average_Cell_All_Fields function. The previous version averaged each conserved variable independently, which could lead to inconsistent values for the various fields. This version calculates the average of the primitive variables from the surrounding cells, and uses those to update the averaged values of the conserved variables. It replaces the previous version of the call in the Average_Slow_Cells_3D function, and is added to the thread crash for the 3D cell update.

@evaneschneider evaneschneider changed the title Dev Update Cell Averaging Dec 8, 2023
@evaneschneider evaneschneider merged commit b30468a into cholla-hydro:dev Dec 13, 2023
10 checks passed
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.

2 participants