-
Notifications
You must be signed in to change notification settings - Fork 250
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
[GeoMechanicsApplication] Free dof for geo table process #13112
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Richard, this is nicely done. I have a non-blocking comment about the test. It seems the middle part tests the table and can be omitted, right?
r_model_part.GetProcessInfo()[TIME] = 0.5; | ||
process.ExecuteInitializeSolutionStep(); | ||
expected_value = 1.0; | ||
expected_fixity = true; | ||
AssertNodesHaveCorrectValueAndFixity(expected_value, expected_fixity, r_model_part); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this to test the table itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, since there was no coverage for that part yet, I added this extra step, to just double check if this works correctly. I agree it's not really part of this test, so I'll move it to a new UT.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for preparing this clear and well-tested fix. I hope that together with the other PR that you've created, we have overcome the problems with freeing the degrees of freedom. I have a few minor suggestions, nothing blocking.
...sApplication/tests/cpp_tests/custom_processes/test_apply_scalar_constraint_table_process.cpp
Outdated
Show resolved
Hide resolved
...sApplication/tests/cpp_tests/custom_processes/test_apply_scalar_constraint_table_process.cpp
Outdated
Show resolved
Hide resolved
...sApplication/tests/cpp_tests/custom_processes/test_apply_scalar_constraint_table_process.cpp
Show resolved
Hide resolved
...sApplication/tests/cpp_tests/custom_processes/test_apply_scalar_constraint_table_process.cpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for processing the review comments. I think this PR is ready to go.
📝 Description
This PR makes sure that DoF are freed in the execute finalize of the table process