mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Remove superfluos is injector or producer test
This commit is contained in:
parent
05317e1d72
commit
44ad5ab190
@ -103,9 +103,6 @@ void WellState::initSingleWell(const std::vector<double>& cellPressures,
|
||||
const ParallelWellInfo& well_info,
|
||||
const SummaryState& summary_state)
|
||||
{
|
||||
if (well.isInjector() == well.isProducer())
|
||||
throw std::logic_error(fmt::format("Well must be either producer or injector - logic error for well: {}", well.name()));
|
||||
|
||||
double pressure_first_connection = -1;
|
||||
if (!well_perf_data.empty())
|
||||
pressure_first_connection = cellPressures[well_perf_data[0].cell_index];
|
||||
|
Loading…
Reference in New Issue
Block a user