mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1518 Add option to chose between absolute or incremental calculations of length and depth when exporting completion data
This commit is contained in:
@@ -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", "", "", "");
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user