#1792 Giving error message if cells from LGR are found in export. Compdat-values for cells not part of LGR exported.

This commit is contained in:
astridkbjorke 2017-08-24 10:27:02 +02:00
parent 78760d569e
commit c7dcf9f4d0
2 changed files with 29 additions and 14 deletions

View File

@ -333,6 +333,12 @@ std::vector<RigCompletionData> RicExportFractureCompletionsImpl::generateCompdat
for (RigTransmissibilityCondenser::CellAddress externalCell : externalCells)
{
if (externalCell.m_cellIndexSpace == RigTransmissibilityCondenser::CellAddress::ECLIPSE)
{
if (externalCell.m_globalCellIdx > mainGrid->cellCount())
{
RiaLogging::error(QString("LGR cells (not supported) found in export of COMPDAT values for fracture %1").arg(fracture->name()));
}
else
{
double trans = transCondenser.condensedTransmissibility(externalCell, { true, RigTransmissibilityCondenser::CellAddress::WELL, 1 });
@ -346,6 +352,7 @@ std::vector<RigCompletionData> RicExportFractureCompletionsImpl::generateCompdat
fractureCompletions.push_back(compDat);
}
}
}
if ( outputStreamForIntermediateResultsText )
{

View File

@ -18,6 +18,7 @@
#include "RigTransmissibilityCondenser.h"
#include "RiaLogging.h"
#include <Eigen/Core>
#include <Eigen/LU>
@ -190,12 +191,19 @@ void printCellAddress(std::stringstream& str,
switch (cellAddr.m_cellIndexSpace) {
case CellAddress::ECLIPSE:
{
if (cellAddr.m_globalCellIdx > mainGrid->cellCount())
{
str << "ECL - LGR CELL ";
}
else
{
str << "ECL ";
size_t i, j, k;
mainGrid->ijkFromCellIndex(cellAddr.m_globalCellIdx, &i, &j, &k);
str << std::setw(5) << i+1 << std::setw(5) << j+1 << std::setw(5) << k+1;
}
}
break;
case CellAddress::STIMPLAN:
{