-
Notifications
You must be signed in to change notification settings - Fork 124
Add a first test case for reservoir coupling #5893
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
a347e13
to
e555c94
Compare
jenkins build this please |
7189b9c
to
6e50ec9
Compare
jenkins build this please |
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.
Looks great.
Just some very minor nitpicks.
tests/rescoup/test_chopstep.cpp
Outdated
rc_master.resizeNextReportDates(2); | ||
} | ||
|
||
void setSlaveData(int slave_number, double slave_start_date, double report_time_step_size) |
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.
Maybe rename this to make clear what is set?
6e50ec9
to
dd24a05
Compare
@blattms Thanks for the review. I have added two commits to address the comments. |
jenkins build this please |
tests/rescoup/test_chopstep.cpp
Outdated
// Sets the slave start date and the next report time offset for the given slave number | ||
// NOTE: The method name is kept short as setSlaveDate() instead of a longer descriptive name | ||
// like setSlaveStartDateAndNextReportTimeOffset() because the method is called multiple times | ||
// in the test cases and the shorter name makes the test cases more readable. | ||
void setSlaveData(int slave_number, double slave_start_date, double report_time_step_size) |
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 kind of disagree. The reason that I asked for a name change is such that fellow developers do not need to take a look at the documentation to understand what is going on. IMHO a short name that does not reveal anything does not make code more readable.
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.
make a struct, document the struct members, pass an instance of that struct, everybody wins.
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.
The reason that I asked for a name change is such that fellow developers do not need to take a look at the documentation to understand what is going on.
@blattms In general I would agree, but in this case the function is called multiple times and the long name could become distracting (reducing readability).
jenkins build this please |
Thanks. Yes that is a long function name. |
This breaks the post-commit build. Please fix immediately or back out the PR. |
i'm on it |
Builds on #5620.