Re-introduced logic_error if node is not defined

This commit is contained in:
Vegard Kippe 2023-11-07 12:09:55 +01:00
parent 0ae1588e00
commit 3519a3a9ab

View File

@ -409,7 +409,8 @@ int numberOfBranchesConnToNode(const Opm::Schedule& sched, const std::string& no
noBranches = (network.uptree_branch(nodeName).has_value()) ? noBranches+1 : noBranches;
return noBranches;
} else {
return 0; // @TODO - Should number of branches in inactive subtree be reported?
auto msg = fmt::format("Actual node: {} has not been defined at report time: {} ", nodeName, lookup_step+1);
throw std::logic_error(msg);
}
}