Updated the way individual tables are parsed

This commit is contained in:
André R. Brodtkorb
2015-06-24 16:05:03 +02:00
parent 7fe4b95b0d
commit 1d9f519111

View File

@@ -665,16 +665,12 @@ namespace Opm {
return;
}
if (!deck->numKeywords(keywordName)) {
complainAboutAmbiguousKeyword(deck, keywordName);
return;
int num_tables = deck->numKeywords("VFPPROD");
tableVector.resize(num_tables);
for (int i=0; i<num_tables; ++i) {
const auto& keyword = deck->getKeyword(keywordName, i);
tableVector[i].init(keyword);
}
const auto& keyword = deck->getKeyword(keywordName);
tableVector.push_back(VFPProdTable());
tableVector[0].init(keyword);
}
bool EclipseState::supportsGridProperty(const std::string& keyword, int enabledTypes) const {