-
Notifications
You must be signed in to change notification settings - Fork 256
[GeoMechanicsApplication] Added CheckDomainSize #13305
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
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.
Dear Gennady,
Thank you for concentrating the functionality at 1 spot only. As the new class CheckUtilities has a public interface, please at another unit test that checks directly this public interface ( i.s.o. through the unit tests for elements. )
Thank you, Wijtze Pieter
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 putting this functionality in a single place. I only have a single suggestion (splitting the new class in a header and source file), other than that (and Wijtze Pieters suggestion for a unit test), this is good to go!
applications/GeoMechanicsApplication/custom_utilities/check_utilities.hpp
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.
This cleans up the code quite nicely, and makes the error messages consistent. Thank you for picking this up. The only suggestion I have is to make one unit test for the new utility function that checks the domain size, since it has public API that we can (and do) use elsewhere. I believe it is a good habit to test all publicly accessible components.
Hi Wijtze Pieter, Richard and Anne, many thanks for your help to make this PR better. |
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.
Good to go, thank you.
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 Gennady,
Thanks for picking up the review suggestions. I have one minor suggestion left for the new implementation file. Apart from that, I think this PR is good to go.
// Main authors: Gennady Markelov | ||
// | ||
|
||
#pragma once |
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.
No inclusion guard needed in an implementation file (.cpp
).
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 feedback, to me this is ready to go!
* added check utility for DomainSize * corrected error message * removed accidentally added space * used nullopt to remove a code smell * used value_or * split check_utilities.hpp into header and body * added unit test * removed pragma from cpp file
📝 Description
A brief description of the PR.