Updating class ERst

- rename member function from getRst -> getRestartData
 - adding support for parsing and reading data for LGRs
 - a number of member functions made const
 - updated python bindings for this class
This commit is contained in:
Torbjørn Skille
2020-11-25 10:55:22 +01:00
parent a7314ab5a0
commit a8461fd121
15 changed files with 550 additions and 155 deletions

View File

@@ -24,7 +24,7 @@ template<typename T>
void write(EclOutput& outFile, ERst& file1,
const std::string& name, int index, int reportStepNumber)
{
auto vect = file1.getRst<T>(index, reportStepNumber);
auto vect = file1.getRestartData<T>(index, reportStepNumber);
outFile.write(name, vect);
}
@@ -177,7 +177,7 @@ int main(int argc, char **argv) {
for (auto seqn : reportStepList) {
std::vector<int> inteh = rst1.getRst<int>("INTEHEAD", seqn, 0);
std::vector<int> inteh = rst1.getRestartData<int>("INTEHEAD", seqn, 0);
std::cout << "Report step number: "
<< std::setfill(' ') << std::setw(4) << seqn << " Date: " << inteh[66] << "/"