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

Fix parsing of the elastic limit #251

Merged
merged 2 commits into from
Dec 19, 2023

Conversation

stvdwtt
Copy link
Collaborator

@stvdwtt stvdwtt commented Dec 5, 2023

MaterialProperty was checking each state for elastic_limit, and setting it to infinity if it wasn't there. The result was that the elastic limit for the solid was ignored.

This changes the logic so MaterialProperty only sets the elastic limit to infinity if it isn't listed for the solid.

@stvdwtt stvdwtt requested a review from Rombur December 5, 2023 15:40
@Rombur
Copy link
Member

Rombur commented Dec 5, 2023

There is the same issue here: https://github.com/stvdwtt/adamantine/blob/c2e5642b1142f6856246c722a69f42c060ee0744/source/MaterialProperty.templates.hh#L923-L927
Can you fix it too.

@stvdwtt
Copy link
Collaborator Author

stvdwtt commented Dec 19, 2023

Retest this please.

@Rombur Rombur merged commit 53a738c into adamantine-sim:master Dec 19, 2023
1 check 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.

None yet

2 participants