Table Output: Don't Store ECL Keywords Internally

This commit switches the internal implementation of the 'tab' and
'tabdims' vectors from being a mix of ECL keyword structures and
std::vector<>s to being purely std::vector<>s.  We remove the
fwrite() member function and rather reimplement the feature in terms
of new query member functions

    const std::vector<int>& tabdims() const
    const std::vector<double>& tab() const

that return read-only references to internal data members.
This commit is contained in:
Bård Skaflestad
2017-11-15 18:04:55 +01:00
parent a2883e5057
commit e26d647252
4 changed files with 101 additions and 53 deletions

View File

@@ -78,7 +78,7 @@ BOOST_AUTO_TEST_CASE(Test_PVTX) {
tables.addDensity( cfg.es.getTableManager().getDensityTable( ) );
{
ERT::FortIO f("TEST.INIT" , std::fstream::out);
tables.fwrite( f );
fwrite(tables, f);
}