Merge pull request #2609 from tskille/fix_ExtESmry
fixing bug in ExtESmry
This commit is contained in:
commit
114eec30c5
@ -412,11 +412,10 @@ void ExtESmry::loadData(const std::vector<std::string>& stringVect)
|
||||
|
||||
m_vectorData[keyIndexVect[n]].insert(m_vectorData[keyIndexVect[n]].end(), smry_data.begin(), smry_data.begin() + to_ind + 1);
|
||||
}
|
||||
|
||||
fileH.close();
|
||||
|
||||
ind--;
|
||||
}
|
||||
|
||||
fileH.close();
|
||||
ind--;
|
||||
}
|
||||
|
||||
for (auto kind : keyIndexVect)
|
||||
|
@ -210,6 +210,10 @@ BOOST_AUTO_TEST_CASE(TestExtESmry_1) {
|
||||
for (unsigned int i=0;i< smryVect.size();i++)
|
||||
BOOST_REQUIRE_CLOSE (smryVect[i], bpr_10103_ref[i], 0.01);
|
||||
|
||||
ExtESmry esmry2("SPE1CASE1.ESMRY");
|
||||
esmry2.loadData();
|
||||
|
||||
|
||||
if (Opm::filesystem::exists("SPE1CASE1.ESMRY"))
|
||||
Opm::filesystem::remove("SPE1CASE1.ESMRY");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user