AdaptiveTimeStepping: rename ebosProblem to problem

This commit is contained in:
Arne Morten Kvarving
2024-02-06 10:11:57 +01:00
parent 638e5006e0
commit acb066eac1

View File

@@ -372,8 +372,8 @@ std::set<std::string> consistentlyFailingWells(const std::vector<StepReport>& sr
suggestedNextTimestep_ = timestepAfterEvent_;
}
auto& modelSimulator = solver.model().simulator();
auto& ebosProblem = modelSimulator.problem();
auto& simulator = solver.model().simulator();
auto& problem = simulator.problem();
// create adaptive step timer with previously used sub step size
AdaptiveSimulatorTimer substepTimer(simulatorTimer, suggestedNextTimestep_, maxTimeStep_);
@@ -446,7 +446,7 @@ std::set<std::string> consistentlyFailingWells(const std::vector<StepReport>& sr
}
//Pass substep to eclwriter for summary output
modelSimulator.problem().setSubStepReport(substepReport);
simulator.problem().setSubStepReport(substepReport);
report += substepReport;
@@ -514,7 +514,7 @@ std::set<std::string> consistentlyFailingWells(const std::vector<StepReport>& sr
time::StopWatch perfTimer;
perfTimer.start();
ebosProblem.writeOutput(simulatorTimer);
problem.writeOutput(simulatorTimer);
report.success.output_write_time += perfTimer.secsSinceStart();
}
@@ -615,7 +615,7 @@ std::set<std::string> consistentlyFailingWells(const std::vector<StepReport>& sr
}
}
}
ebosProblem.setNextTimeStepSize(substepTimer.currentStepLength());
problem.setNextTimeStepSize(substepTimer.currentStepLength());
}
// store estimated time step for next reportStep