#3198 Support LGR when exporting fishbone completions for multi segment wells.

* Also refactor RicMultiSegmentWellExportInfo to remove public member variables.
This commit is contained in:
Gaute Lindkvist
2018-08-13 12:59:45 +02:00
parent ffd545c75c
commit 2987e6128d
10 changed files with 837 additions and 280 deletions

View File

@@ -279,6 +279,18 @@ RifEclipseDataTableFormatter& RifEclipseDataTableFormatter::addZeroBasedCellInde
return *this;
}
//--------------------------------------------------------------------------------------------------
/// Add default marker if the value equals the defaultValue, otherwise add value.
//--------------------------------------------------------------------------------------------------
RifEclipseDataTableFormatter& RifEclipseDataTableFormatter::addValueOrDefaultMarker(double value, double defaultValue)
{
if (value == defaultValue)
{
return add(QString("1*"));
}
return add(value);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
@@ -343,11 +355,6 @@ int RifEclipseDataTableFormatter::tableWidth() const
//--------------------------------------------------------------------------------------------------
QString RifEclipseDataTableFormatter::format(double num, RifEclipseOutputTableDoubleFormatting doubleFormat)
{
if (num == std::numeric_limits<double>::infinity())
{
return QString("1*"); // Eclipse default column value
}
switch (doubleFormat.format)
{
case RifEclipseOutputTableDoubleFormat::RIF_FLOAT: