mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6153 MSW: Do not report WSEGVALV for inactive cells
This commit is contained in:
parent
ec03627fae
commit
28d8d9d07d
@ -714,13 +714,17 @@ void RicWellPathExportMswCompletionsImpl::generateWsegvalvTable( RifTextDataTabl
|
|||||||
if ( !icd->subSegments().empty() )
|
if ( !icd->subSegments().empty() )
|
||||||
{
|
{
|
||||||
CVF_ASSERT( icd->subSegments().size() == 1u );
|
CVF_ASSERT( icd->subSegments().size() == 1u );
|
||||||
|
|
||||||
|
auto firstSubSegment = icd->subSegments().front();
|
||||||
|
if ( !firstSubSegment->intersections().empty() )
|
||||||
|
{
|
||||||
if ( icd->completionType() == RigCompletionData::PERFORATION_ICD ||
|
if ( icd->completionType() == RigCompletionData::PERFORATION_ICD ||
|
||||||
icd->completionType() == RigCompletionData::PERFORATION_ICV )
|
icd->completionType() == RigCompletionData::PERFORATION_ICV )
|
||||||
{
|
{
|
||||||
formatter.comment( icd->label() );
|
formatter.comment( icd->label() );
|
||||||
}
|
}
|
||||||
formatter.add( exportInfo.wellPath()->completions()->wellNameForExport() );
|
formatter.add( exportInfo.wellPath()->completions()->wellNameForExport() );
|
||||||
formatter.add( icd->subSegments().front()->segmentNumber() );
|
formatter.add( firstSubSegment->segmentNumber() );
|
||||||
formatter.add( icd->flowCoefficient() );
|
formatter.add( icd->flowCoefficient() );
|
||||||
formatter.add( QString( "%1" ).arg( icd->area(), 8, 'g', 4 ) );
|
formatter.add( QString( "%1" ).arg( icd->area(), 8, 'g', 4 ) );
|
||||||
formatter.rowCompleted();
|
formatter.rowCompleted();
|
||||||
@ -728,6 +732,7 @@ void RicWellPathExportMswCompletionsImpl::generateWsegvalvTable( RifTextDataTabl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if ( foundValve )
|
if ( foundValve )
|
||||||
{
|
{
|
||||||
formatter.tableCompleted();
|
formatter.tableCompleted();
|
||||||
|
Loading…
Reference in New Issue
Block a user