Use ScheduleState to manage well test configuration

This commit is contained in:
Joakim Hove 2021-01-12 14:08:41 +01:00
parent 02fc2b9c53
commit c1a1bf8683

View File

@ -426,7 +426,7 @@ namespace Opm {
template<typename TypeTag>
void
BlackoilWellModel<TypeTag>::wellTesting(const int timeStepIdx, const double simulationTime, Opm::DeferredLogger& deferred_logger) {
const auto& wtest_config = schedule().wtestConfig(timeStepIdx);
const auto& wtest_config = schedule()[timeStepIdx].wtest_config();
if (wtest_config.size() != 0) { // there is a WTEST request
// average B factors are required for the convergence checking of well equations