#1960 Code adjustments

This commit is contained in:
Jacob Støren 2017-10-04 11:18:11 +02:00
parent 777a231606
commit f654cd2bcc
2 changed files with 7 additions and 7 deletions

View File

@ -165,12 +165,12 @@ void RifEclipseUnifiedRestartFileAccess::extractTimestepsFromEclipse()
ecl_file_push_block(m_ecl_file); // <-------------------------------------------------------
{ //
ecl_file_subselect_block(m_ecl_file, SEQNUM_KW, block_nr); // Ensure that the status
{ // is not changed as a side
const ecl_kw_type * seqnum_kw = ecl_file_iget_named_kw(m_ecl_file, SEQNUM_KW, 0); // effect.
int report_nr = ecl_kw_iget_int(seqnum_kw, 0); //
{ // is not changed as a side
const ecl_kw_type * seqnum_kw = ecl_file_iget_named_kw(m_ecl_file, SEQNUM_KW, 0); // effect.
int report_nr = ecl_kw_iget_int(seqnum_kw, 0); //
m_reportNr.push_back(report_nr);
} //
} //
} //
ecl_file_pop_block(m_ecl_file); // <-------------------------------------------------------
}
@ -311,9 +311,9 @@ void RifEclipseUnifiedRestartFileAccess::readWellData(well_info_type* well_info,
if (openFile())
{
// cvf::Trace::show("well_info_add_UNRST_wells Start");
// cvf::Trace::show("well_info_add_UNRST_wells Start"); // Use for profiling
well_info_add_UNRST_wells(well_info, m_ecl_file, importCompleteMswData);
// cvf::Trace::show("well_info_add_UNRST_wells End");
// cvf::Trace::show("well_info_add_UNRST_wells End"); // Use for profiling
}
}

View File

@ -60,12 +60,12 @@ public:
private:
bool openFile();
bool useResultIndexFile() const;
void extractTimestepsFromEclipse();
private:
QString m_filename;
ecl_file_type* m_ecl_file;
void extractTimestepsFromEclipse();
std::vector<QDateTime> m_timeSteps;
std::vector<double> m_daysSinceSimulationStart;
std::vector<int> m_reportNr;