Merge pull request #4155 from totto82/fixTestGlift

set alq before trying to solve the equation during well testing
This commit is contained in:
Atgeirr Flø Rasmussen 2022-10-17 15:08:57 +02:00 committed by GitHub
commit 6a13fe807a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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());