Merge pull request #6319 from totto82/open_testing_well

open wells at well testing
This commit is contained in:
Kai Bao authored and GitHub committed 2025-06-25 18:50:02 +02:00
commit b90a6e374f
1 file changed
+2 -2
+2 -2
View File
@@ -402,6 +402,8 @@ namespace Opm
else {
ws.production_cmode = Well::ProducerCMode::BHP;
}
// We will try to open the well
ws.open();
updateWellStateWithTarget(simulator, group_state, well_state_copy, deferred_logger);
calculateExplicitQuantities(simulator, well_state_copy, deferred_logger);
@@ -488,8 +490,6 @@ namespace Opm
if (!welltest_state_temp.completion_is_closed(this->name(), completion.first))
well_test_state.open_completion(this->name(), completion.first);
}
// set the status of the well_state to open
ws.open();
well_state = well_state_copy;
open_times.try_emplace(this->name(), well_test_state.lastTestTime(this->name()));
}