LGR Export. Rename method. 1-based IJK output

This commit is contained in:
Bjørn Erik Jensen 2018-10-09 12:44:42 +02:00
parent 1aa969f036
commit 661b6b0b73
2 changed files with 9 additions and 9 deletions

View File

@ -130,7 +130,7 @@ bool RicExportLgrFeature::openFileForExport(const QString& folderName, const QSt
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicExportLgrFeature::exportCarfin(QTextStream& stream, const std::map<RigCompletionDataGridCell, LgrInfo>& lgrInfos)
void RicExportLgrFeature::exportLgr(QTextStream& stream, const std::map<RigCompletionDataGridCell, LgrInfo>& lgrInfos)
{
int count = 0;
for (auto lgr : lgrInfos)
@ -158,12 +158,12 @@ void RicExportLgrFeature::exportCarfin(QTextStream& stream, const std::map<RigCo
);
formatter.add(lgrInfo.name);
formatter.add(dataGridCell.localCellIndexI());
formatter.add(dataGridCell.localCellIndexI());
formatter.add(dataGridCell.localCellIndexJ());
formatter.add(dataGridCell.localCellIndexJ());
formatter.add(dataGridCell.localCellIndexK());
formatter.add(dataGridCell.localCellIndexK());
formatter.add(dataGridCell.localCellIndexI() + 1);
formatter.add(dataGridCell.localCellIndexI() + 1);
formatter.add(dataGridCell.localCellIndexJ() + 1);
formatter.add(dataGridCell.localCellIndexJ() + 1);
formatter.add(dataGridCell.localCellIndexK() + 1);
formatter.add(dataGridCell.localCellIndexK() + 1);
formatter.add(lgrInfo.sizes.i());
formatter.add(lgrInfo.sizes.j());
formatter.add(lgrInfo.sizes.k());
@ -258,7 +258,7 @@ void RicExportLgrFeature::onActionTriggered(bool isChecked)
QTextStream stream(&file);
stream.setRealNumberNotation(QTextStream::FixedNotation);
stream.setRealNumberPrecision(2);
exportCarfin(stream, lgrs);
exportLgr(stream, lgrs);
file.close();
}
}

View File

@ -54,7 +54,7 @@ class RicExportLgrFeature : public caf::CmdFeature
static RicExportLgrUi* openDialog();
static bool openFileForExport(const QString& folderName, const QString& fileName, QFile* exportFile);
static void exportCarfin(QTextStream& stream, const std::map<RigCompletionDataGridCell, LgrInfo>& lgrInfos);
static void exportLgr(QTextStream& stream, const std::map<RigCompletionDataGridCell, LgrInfo>& lgrInfos);
protected:
virtual bool isCommandEnabled() override;