fix the "number of table" calculation for multi-record tables

It turns out that the empty-record detection worked fine, but that the
last empty record of a keyword is ignored by opm-parser for reasons
which are not clear to me...

Now all unit tests pass.
This commit is contained in:
Andreas Lauser
2014-04-28 21:04:38 +02:00
parent 808e2d3717
commit 1909e22f48

View File

@@ -38,6 +38,10 @@ size_t MultiRecordTable::numTables(Opm::DeckKeywordConstPtr keyword)
++ result;
}
// the last empty record of a keyword seems to go MIA for some
// strange reason...
++result;
return result;
}