mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3198 Support LGR when exporting fishbone completions for multi segment wells.
* Also refactor RicMultiSegmentWellExportInfo to remove public member variables.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user