set alq before trying to solve the equation during well testing

This commit is contained in:
Tor Harald Sandve 2022-10-10 08:14:42 +02:00
parent 941556ab4d
commit 2ca3c25f4f

View File

@ -319,6 +319,10 @@ namespace Opm
updatePrimaryVariables(well_state_copy, deferred_logger);
initPrimaryVariablesEvaluation();
if (this->isProducer()) {
gliftBeginTimeStepWellTestUpdateALQ(simulator, well_state_copy, deferred_logger);
}
WellTestState welltest_state_temp;
bool testWell = true;
@ -334,9 +338,7 @@ namespace Opm
return;
}
if (this->isProducer()) {
gliftBeginTimeStepWellTestUpdateALQ(simulator, well_state_copy, deferred_logger);
}
updateWellOperability(simulator, well_state_copy, deferred_logger);
if ( !this->isOperableAndSolvable() ) {
const auto msg = fmt::format("WTEST: Well {} is not operable (physical)", this->name());