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

Reorder initialization of partial strain rates in composite visco plastic #6004

Merged

Conversation

gassmoeller
Copy link
Member

I think this way the initialization is easier to understand (first resize, then initialize all values), the effect is the same.

Embarrassingly for the past two days I was hunting for a bug here that was already fixed in #5990 (my branch wasnt updated). The partial strain rates used to be not initialized and existing values would be included in the strain rates. After finding the bug I rebased and saw it was fixed already (in a PR I reviewed 🤦‍♂️). Anyway, both the code before and after this PR is correct (before #5990 it was potentially broken depending on the prior values in partial_strain_rates).

Copy link
Member

@bobmyhill bobmyhill left a comment

Choose a reason for hiding this comment

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

Thanks @gassmoeller , I agree, this way is clearer. Sorry that I made you hunt for a bug!

@bobmyhill bobmyhill merged commit 798c579 into geodynamics:main Aug 11, 2024
7 of 8 checks passed
@gassmoeller
Copy link
Member Author

No worries it was my own fault that I didnt check if it was already fixed (and I shouldnt have assumed that the prior values dont matter).

@gassmoeller gassmoeller deleted the initialize_partial_strain_rates branch August 11, 2024 23:32
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