Merge pull request #3188 from joakim-hove/actionx-record-correct-time

Record the correct simulation time in ActionState
This commit is contained in:
Joakim Hove
2021-04-27 14:07:53 +02:00
committed by GitHub
+1 -1
View File
@@ -1381,7 +1381,7 @@ public:
} }
bool commit_wellstate = false; bool commit_wellstate = false;
auto simTime = schedule.simTime(reportStep); auto simTime = Opm::asTimeT(now);
for (const auto& action : actions.pending(actionState, simTime)) { for (const auto& action : actions.pending(actionState, simTime)) {
auto actionResult = action->eval(context); auto actionResult = action->eval(context);
if (actionResult) { if (actionResult) {