Blackoil Output: Chase API Change in SummaryNode Class

In particular, the .type() function is renamed to .category(), and
it no longer returns a LibECL type.  Similarly, the .num() function
has been renamed to .number().
This commit is contained in:
Bård Skaflestad 2019-09-27 15:56:55 +02:00
parent fabc067b5e
commit d979fb0fae

View File

@ -121,9 +121,9 @@ public:
// Initialize block output
for (const auto& node: summaryConfig) {
if (node.type() == ECL_SMSPEC_BLOCK_VAR) {
if (collectToIORank.isGlobalIdxOnThisRank(node.num() - 1)) {
std::pair<std::string, int> key = std::make_pair(node.keyword(), node.num());
if (node.category() == SummaryNode::Category::Block) {
if (collectToIORank.isGlobalIdxOnThisRank(node.number() - 1)) {
std::pair<std::string, int> key = std::make_pair(node.keyword(), node.number());
blockData_[key] = 0.0;
}
}