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

evaluation of moments improved #20

Merged
merged 4 commits into from
Nov 30, 2023
Merged

evaluation of moments improved #20

merged 4 commits into from
Nov 30, 2023

Conversation

jonatanschatzlmayr
Copy link
Collaborator

No description provided.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The check was useless in its original position:

(a) the checked arrays were not allocated at this point, therefore size() would give any kind of output back
(b) it never threw an error nonetheless, as the .not. was not properly placed, so that the total output would actually only be true, if verts (what mostly the case due to (a)) did not align with n_tetra AND simultaneously, neighbour/neighbour_faces DID match (by some unlikely chance, as they were also not allocated before).

The position/check idea is properly an artifact of an earlies version of the code.

Copy link
Collaborator

@GeorgGrassler GeorgGrassler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes are okay, and the result of the reversibility test (GORILLA_APPLETS) still work with the new moment calculation. Suggestion for the future: relocate the moments + interface declaration to an external file/module and call the interface from the calc_optional_quantities routine.

@GeorgGrassler GeorgGrassler merged commit 4e3cd9d into itpplasma:main Nov 30, 2023
5 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