#1518 Add option to chose between absolute or incremental calculations of length and depth when exporting completion data

This commit is contained in:
Bjørnar Grip Fjær
2017-05-23 15:51:07 +02:00
parent dbc775e6c2
commit bb8483a98b
3 changed files with 50 additions and 5 deletions

View File

@@ -27,6 +27,14 @@ namespace caf {
addItem(RimExportCompletionDataSettings::HYDROSTATIC_FRICTION_ACCELERATION, "HFA", "Hydrostatic + Friction + Acceleration");
setDefault(RimExportCompletionDataSettings::HYDROSTATIC);
}
template<>
void RimExportCompletionDataSettings::LengthAndDepthEnum::setUp()
{
addItem(RimExportCompletionDataSettings::INC, "INC", "Incremental");
addItem(RimExportCompletionDataSettings::ABS, "ABS", "Absolute");
setDefault(RimExportCompletionDataSettings::INC);
}
}
CAF_PDM_SOURCE_INIT(RimExportCompletionDataSettings, "RimExportCompletionDataSettings");
@@ -41,4 +49,5 @@ RimExportCompletionDataSettings::RimExportCompletionDataSettings()
CAF_PDM_InitField(&includeWpimult, "IncludeWPIMULT", true, "Include WPIMLUT", "", "", "");
CAF_PDM_InitField(&removeLateralsInMainBoreCells, "RemoveLateralsInMainBoreCells", false, "Remove Laterals in Main Bore Cells", "", "", "");
CAF_PDM_InitFieldNoDefault(&pressureDrop, "PressureDrop", "Pressure Drop", "", "", "");
CAF_PDM_InitFieldNoDefault(&lengthAndDepth, "LengthAndDepth", "Length and Depth", "", "", "");
}

View File

@@ -39,9 +39,17 @@ public:
typedef caf::AppEnum<RimExportCompletionDataSettings::PressureDropType> PressureDropEnum;
enum LengthAndDepthType {
ABS,
INC
};
typedef caf::AppEnum<RimExportCompletionDataSettings::LengthAndDepthType> LengthAndDepthEnum;
RimExportCompletionDataSettings();
caf::PdmField<bool> includeWpimult;
caf::PdmField<bool> removeLateralsInMainBoreCells;
caf::PdmField<PressureDropEnum> pressureDrop;
caf::PdmField<LengthAndDepthEnum> lengthAndDepth;
};