mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
LGR Export. Rename method. 1-based IJK output
This commit is contained in:
parent
1aa969f036
commit
661b6b0b73
@ -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;
|
int count = 0;
|
||||||
for (auto lgr : lgrInfos)
|
for (auto lgr : lgrInfos)
|
||||||
@ -158,12 +158,12 @@ void RicExportLgrFeature::exportCarfin(QTextStream& stream, const std::map<RigCo
|
|||||||
);
|
);
|
||||||
|
|
||||||
formatter.add(lgrInfo.name);
|
formatter.add(lgrInfo.name);
|
||||||
formatter.add(dataGridCell.localCellIndexI());
|
formatter.add(dataGridCell.localCellIndexI() + 1);
|
||||||
formatter.add(dataGridCell.localCellIndexI());
|
formatter.add(dataGridCell.localCellIndexI() + 1);
|
||||||
formatter.add(dataGridCell.localCellIndexJ());
|
formatter.add(dataGridCell.localCellIndexJ() + 1);
|
||||||
formatter.add(dataGridCell.localCellIndexJ());
|
formatter.add(dataGridCell.localCellIndexJ() + 1);
|
||||||
formatter.add(dataGridCell.localCellIndexK());
|
formatter.add(dataGridCell.localCellIndexK() + 1);
|
||||||
formatter.add(dataGridCell.localCellIndexK());
|
formatter.add(dataGridCell.localCellIndexK() + 1);
|
||||||
formatter.add(lgrInfo.sizes.i());
|
formatter.add(lgrInfo.sizes.i());
|
||||||
formatter.add(lgrInfo.sizes.j());
|
formatter.add(lgrInfo.sizes.j());
|
||||||
formatter.add(lgrInfo.sizes.k());
|
formatter.add(lgrInfo.sizes.k());
|
||||||
@ -258,7 +258,7 @@ void RicExportLgrFeature::onActionTriggered(bool isChecked)
|
|||||||
QTextStream stream(&file);
|
QTextStream stream(&file);
|
||||||
stream.setRealNumberNotation(QTextStream::FixedNotation);
|
stream.setRealNumberNotation(QTextStream::FixedNotation);
|
||||||
stream.setRealNumberPrecision(2);
|
stream.setRealNumberPrecision(2);
|
||||||
exportCarfin(stream, lgrs);
|
exportLgr(stream, lgrs);
|
||||||
file.close();
|
file.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,7 @@ class RicExportLgrFeature : public caf::CmdFeature
|
|||||||
|
|
||||||
static RicExportLgrUi* openDialog();
|
static RicExportLgrUi* openDialog();
|
||||||
static bool openFileForExport(const QString& folderName, const QString& fileName, QFile* exportFile);
|
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:
|
protected:
|
||||||
virtual bool isCommandEnabled() override;
|
virtual bool isCommandEnabled() override;
|
||||||
|
Loading…
Reference in New Issue
Block a user