mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Regression Test: Fix wrong flow diagnostics result
Fix regression introduced in 5ee764af48
This commit is contained in:
parent
1d43e1a948
commit
2b0906c2ab
@ -81,8 +81,14 @@ RD::FlowTracerSelectionState RimEclipseResultDefinitionTools::getFlowTracerSelec
|
|||||||
const RimFlowDiagSolution* flowDiagSolution,
|
const RimFlowDiagSolution* flowDiagSolution,
|
||||||
size_t selectedTracerCount )
|
size_t selectedTracerCount )
|
||||||
{
|
{
|
||||||
if ( tracerSelectionType == RD::FlowTracerSelectionType::FLOW_TR_INJECTORS ||
|
if ( isInjector && ( tracerSelectionType == RD::FlowTracerSelectionType::FLOW_TR_INJECTORS ||
|
||||||
tracerSelectionType == RD::FlowTracerSelectionType::FLOW_TR_INJ_AND_PROD )
|
tracerSelectionType == RD::FlowTracerSelectionType::FLOW_TR_INJ_AND_PROD ) )
|
||||||
|
{
|
||||||
|
return RD::FlowTracerSelectionState::ALL_SELECTED;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( !isInjector && ( tracerSelectionType == RD::FlowTracerSelectionType::FLOW_TR_PRODUCERS ||
|
||||||
|
tracerSelectionType == RD::FlowTracerSelectionType::FLOW_TR_INJ_AND_PROD ) )
|
||||||
{
|
{
|
||||||
return RD::FlowTracerSelectionState::ALL_SELECTED;
|
return RD::FlowTracerSelectionState::ALL_SELECTED;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user