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-30 15:00:05 +02:00
parent fabc067b5e
commit d979fb0fae
+3 -3
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;
}
}