mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-23 16:00:01 -06:00
Don't Pass Action::Result By Value Into Add_Run()
This is no longer needed so we can go back to using 'const' objects.
This commit is contained in:
parent
ed290b4b36
commit
4739821cb4
@ -224,7 +224,7 @@ applyActions(const int reportStep,
|
||||
auto non_triggered = 0;
|
||||
const auto simTime = asTimeT(now);
|
||||
for (const auto& action : actions.pending(this->actionState_, simTime)) {
|
||||
auto actionResult = action->eval(context);
|
||||
const auto actionResult = action->eval(context);
|
||||
if (! actionResult) {
|
||||
++non_triggered;
|
||||
logInactiveAction(action->name(), ts);
|
||||
@ -243,7 +243,7 @@ applyActions(const int reportStep,
|
||||
.applyAction(reportStep, *action, matching_wells, wellpi);
|
||||
|
||||
this->applySimulatorUpdate(reportStep, sim_update, transUp, commit_wellstate);
|
||||
this->actionState_.add_run(*action, simTime, std::move(actionResult));
|
||||
this->actionState_.add_run(*action, simTime, actionResult);
|
||||
}
|
||||
|
||||
if (non_triggered > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user