-
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] Split ApplyComponentTableProcess in header and source #13122
[GeoMechanicsApplication] Split ApplyComponentTableProcess in header and source #13122
Conversation
… and moved as many includes as possible to the source
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 is a straightforward and clear PR. Thank you for splitting the original header into a cleaner header and an implementation file. I have only a few very minor comments.
|
||
#include "includes/kratos_export_api.h" | ||
#include "includes/kratos_parameters.h" | ||
#include "includes/model_part.h" |
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.
I believe we can move this #include
to the .cpp
file now, since the interface uses references to ModelPart
s only. In other words, a forward declaration will do here.
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.
I thought so to, tried, but get (very vague) compiler errors, let's have a look together at this
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.
Managed to find why, I added a missing include in a different file to be able to get the forward declare to work
|
||
using TableType = Table<double, double>; | ||
|
||
ApplyComponentTableProcess(ModelPart& model_part, Parameters rParameters); |
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.
Let's make the parameter names comply with the Kratos Style Guide:
ApplyComponentTableProcess(ModelPart& model_part, Parameters rParameters); | |
ApplyComponentTableProcess(ModelPart& rModelPart, Parameters ProcessSettings); |
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.
Done
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.
I think this PR is ready to go.
📝 Description
There was no reason to have a single .hpp file (no templated functions) for this process, so it was split into a header + source. No functional changes were done, just:
Info
function