mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-18 21:43:27 -06:00
Merge remote-tracking branch 'totto82/add_compi_producers' into add_compi_producers
This commit is contained in:
commit
94d45c4c3d
@ -761,6 +761,11 @@ namespace Opm
|
|||||||
OPM_THROW(std::runtime_error, "Control mode type " << mode << " not present in well " << well_names[well_index]);
|
OPM_THROW(std::runtime_error, "Control mode type " << mode << " not present in well " << well_names[well_index]);
|
||||||
}
|
}
|
||||||
set_current_control(well_index, cpos, w_);
|
set_current_control(well_index, cpos, w_);
|
||||||
|
|
||||||
|
// Set well component fraction in producers to 1 for all phases. This HACK make sure volrates are nonzero for all perforations.
|
||||||
|
double cf[3] = { 0, 1, 0};
|
||||||
|
std::copy(cf, cf + phaseUsage.num_phases, w_->comp_frac + well_index*phaseUsage.num_phases);
|
||||||
|
|
||||||
}
|
}
|
||||||
well_index++;
|
well_index++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user