mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3888 Report error if the valve is invalid
This commit is contained in:
parent
4f1f52ec5c
commit
fff70bb9f6
@ -690,6 +690,12 @@ void RicWellPathExportMswCompletionsImpl::generateWsegAicdTable(RifEclipseDataTa
|
||||
{
|
||||
if (completion->completionType() == RigCompletionData::PERFORATION_AICD)
|
||||
{
|
||||
std::shared_ptr<RicMswPerforationAICD> aicd = std::static_pointer_cast<RicMswPerforationAICD>(completion);
|
||||
if (!aicd->isValid())
|
||||
{
|
||||
RiaLogging::error(QString("Export AICD Valve (%1): Valve is invalid. At least one required template parameter is not set.").arg(aicd->label()));
|
||||
}
|
||||
|
||||
if (!foundValve)
|
||||
{
|
||||
std::vector<QString> columnDescriptions =
|
||||
@ -731,8 +737,6 @@ void RicWellPathExportMswCompletionsImpl::generateWsegAicdTable(RifEclipseDataTa
|
||||
|
||||
foundValve = true;
|
||||
}
|
||||
{
|
||||
std::shared_ptr<RicMswPerforationAICD> aicd = std::static_pointer_cast<RicMswPerforationAICD>(completion);
|
||||
if (!aicd->subSegments().empty())
|
||||
{
|
||||
CVF_ASSERT(aicd->subSegments().size() == 1u);
|
||||
@ -765,7 +769,6 @@ void RicWellPathExportMswCompletionsImpl::generateWsegAicdTable(RifEclipseDataTa
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (foundValve)
|
||||
{
|
||||
formatter.tableCompleted();
|
||||
|
Loading…
Reference in New Issue
Block a user