fixing the prallel running.

It needs WellSwitchingLogger for all the processes even there are not
wells in some of the processes.
This commit is contained in:
Kai Bao
2017-08-08 12:30:24 +02:00
parent 5cb0a5109e
commit 31ce880ba7
4 changed files with 9 additions and 5 deletions

View File

@@ -1269,7 +1269,8 @@ namespace Opm
template<typename TypeTag>
void
StandardWell<TypeTag>::
updateWellControl(WellState& xw) const
updateWellControl(WellState& xw,
wellhelpers::WellSwitchingLogger& logger) const
{
const int np = number_of_phases_;
const int nw = xw.bhp().size();
@@ -1329,7 +1330,6 @@ namespace Opm
const int updated_control_index = xw.currentControls()[w];
// checking whether control changed
wellhelpers::WellSwitchingLogger logger;
if (updated_control_index != old_control_index) {
logger.wellSwitched(name_,
well_controls_iget_type(wc, old_control_index),