mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3477 Export Property : Updates after code has moved to exportPropertyInViews
This commit is contained in:
@@ -38,7 +38,8 @@ bool RicEclipseCellResultToFileImpl::writePropertyToTextFile(const QString&
|
||||
RigEclipseCaseData* eclipseCase,
|
||||
size_t timeStep,
|
||||
const QString& resultName,
|
||||
const QString& eclipseKeyword)
|
||||
const QString& eclipseKeyword,
|
||||
const double undefinedValue)
|
||||
{
|
||||
CVF_TIGHT_ASSERT(eclipseCase);
|
||||
if (!eclipseCase) return false;
|
||||
@@ -50,8 +51,6 @@ bool RicEclipseCellResultToFileImpl::writePropertyToTextFile(const QString&
|
||||
return false;
|
||||
}
|
||||
|
||||
const double undefinedValue = 0.0;
|
||||
|
||||
return writeResultToTextFile(
|
||||
fileName, eclipseCase, resultAccessor.p(), eclipseKeyword, undefinedValue, "writePropertyToTextFile");
|
||||
}
|
||||
|
||||
@@ -38,7 +38,8 @@ public:
|
||||
RigEclipseCaseData* eclipseCase,
|
||||
size_t timeStep,
|
||||
const QString& resultName,
|
||||
const QString& eclipseKeyword);
|
||||
const QString& eclipseKeyword,
|
||||
const double undefinedValue);
|
||||
|
||||
static bool writeBinaryResultToTextFile(const QString& fileName,
|
||||
RigEclipseCaseData* eclipseCase,
|
||||
|
||||
@@ -105,7 +105,14 @@ void RicSaveEclipseInputPropertyFeature::onActionTriggered(bool isChecked)
|
||||
|
||||
if (propertyDialog.exec() == QDialog::Accepted)
|
||||
{
|
||||
bool isOk = RicEclipseCellResultToFileImpl::writePropertyToTextFile(exportSettings.fileName, inputReservoir->eclipseCaseData(), 0, inputProperty->resultName, exportSettings.eclipseKeyword);
|
||||
const double undefinedValue = 0.0;
|
||||
|
||||
bool isOk = RicEclipseCellResultToFileImpl::writePropertyToTextFile(exportSettings.fileName,
|
||||
inputReservoir->eclipseCaseData(),
|
||||
0,
|
||||
inputProperty->resultName,
|
||||
exportSettings.eclipseKeyword,
|
||||
undefinedValue);
|
||||
if (isOk)
|
||||
{
|
||||
inputProperty->fileName = exportSettings.fileName;
|
||||
|
||||
Reference in New Issue
Block a user