mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1988 Remove assumed wrong test to make the new version of flow diag to actually work
This commit is contained in:
parent
4d097a3149
commit
a8121fb0c4
@ -143,7 +143,8 @@ Toolbox::Impl::injDiag(const std::vector<CellSet>& start_sets)
|
||||
throw std::runtime_error("Start set ID not present in data passed to assignInflowFlux().");
|
||||
}
|
||||
for (const int cell : start) {
|
||||
if (only_inflow_flux_.count(cell) != 1 || only_outflow_flux_.count(cell) != 0) {
|
||||
if (only_inflow_flux_.count(cell) != 1)// || only_outflow_flux_.count(cell) != 0)
|
||||
{
|
||||
throw std::runtime_error("Start set inconsistent with assignInflowFlux()-given values");
|
||||
}
|
||||
}
|
||||
@ -183,9 +184,11 @@ Toolbox::Impl::prodDiag(const std::vector<CellSet>& start_sets)
|
||||
throw std::runtime_error("Start set ID not present in data passed to assignInflowFlux().");
|
||||
}
|
||||
for (const int cell : start) {
|
||||
if (only_inflow_flux_.count(cell) != 0 || only_outflow_flux_.count(cell) != 1) {
|
||||
if (//only_inflow_flux_.count(cell) != 0 ||
|
||||
only_outflow_flux_.count(cell) != 1 )
|
||||
{
|
||||
throw std::runtime_error("Start set inconsistent with assignInflowFlux()-given values");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user