Remove grid index from cell reference text if grid is main grid

This commit is contained in:
Rebecca Cox
2017-12-18 11:27:56 +01:00
parent bc12695af1
commit 8ed0393863
2 changed files with 18 additions and 3 deletions

View File

@@ -196,7 +196,15 @@ QString RiuPvtPlotUpdater::constructCellReferenceText(const RigEclipseCaseData*
j++;
k++;
QString retText = QString("Grid index %1, Cell: [%2, %3, %4]").arg(gridIndex).arg(i).arg(j).arg(k);
QString retText;
if (gridIndex == 0)
{
retText = QString("Cell: [%1, %2, %3]").arg(i).arg(j).arg(k);
}
else
{
retText = QString("LGR %1, Cell: [%2, %3, %4]").arg(gridIndex).arg(i).arg(j).arg(k);
}
if (pvtnum != HUGE_VAL)
{

View File

@@ -183,8 +183,15 @@ QString RiuRelativePermeabilityPlotUpdater::constructCellReferenceText(const Rig
j++;
k++;
QString retText = QString("Grid index %1, Cell: [%2, %3, %4]").arg(gridIndex).arg(i).arg(j).arg(k);
QString retText;
if (gridIndex == 0)
{
retText = QString("Cell: [%1, %2, %3]").arg(i).arg(j).arg(k);
}
else
{
retText = QString("LGR %1, Cell: [%2, %3, %4]").arg(gridIndex).arg(i).arg(j).arg(k);
}
if (satnum != HUGE_VAL)
{
retText += QString(" (SATNUM=%1)").arg(satnum);