Add possible support for AllCell result in Result Cases

See issue #99 and #100
This commit is contained in:
Jacob Støren 2013-10-18 14:26:49 +02:00
parent 58e62e9a35
commit 1cce11f7f9

View File

@ -1464,6 +1464,9 @@ QStringList RifReaderEclipseOutput::validKeywordsForPorosityModel(const QStringL
if (activeCellInfo->globalActiveCellCount() > 0)
{
size_t timeStepsAllCells = keywordDataItemCounts[i] / activeCellInfo->globalCellCount();
size_t timeStepsAllCellsRest = keywordDataItemCounts[i] % activeCellInfo->globalCellCount();
size_t timeStepsMatrix = keywordDataItemCounts[i] / activeCellInfo->globalActiveCellCount();
size_t timeStepsMatrixRest = keywordDataItemCounts[i] % activeCellInfo->globalActiveCellCount();
@ -1479,6 +1482,11 @@ QStringList RifReaderEclipseOutput::validKeywordsForPorosityModel(const QStringL
keywordsWithCorrectNumberOfDataItems.push_back(keywords[i]);
}
}
else if (timeStepsAllCellsRest == 0)
{
keywordsWithCorrectNumberOfDataItems.push_back(keywords[i]);
}
}
else
{
@ -1486,6 +1494,10 @@ QStringList RifReaderEclipseOutput::validKeywordsForPorosityModel(const QStringL
{
keywordsWithCorrectNumberOfDataItems.push_back(keywords[i]);
}
else if (timeStepsAllCellsRest == 0)
{
keywordsWithCorrectNumberOfDataItems.push_back(keywords[i]);
}
}
}
else