mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #2470 from akva2/rename_summarynode
adjust for SummaryNode -> SummaryConfigNode rename
This commit is contained in:
commit
8b844af07e
@ -186,7 +186,7 @@ public:
|
|||||||
|
|
||||||
// Initialize block output
|
// Initialize block output
|
||||||
for (const auto& node: summaryConfig) {
|
for (const auto& node: summaryConfig) {
|
||||||
if (node.category() == SummaryNode::Category::Block) {
|
if (node.category() == SummaryConfigNode::Category::Block) {
|
||||||
if (collectToIORank.isGlobalIdxOnThisRank(node.number() - 1)) {
|
if (collectToIORank.isGlobalIdxOnThisRank(node.number() - 1)) {
|
||||||
std::pair<std::string, int> key = std::make_pair(node.keyword(), node.number());
|
std::pair<std::string, int> key = std::make_pair(node.keyword(), node.number());
|
||||||
blockData_[key] = 0.0;
|
blockData_[key] = 0.0;
|
||||||
|
@ -2175,18 +2175,18 @@ BOOST_AUTO_TEST_CASE(BrineDensityTable)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(SummaryNode)
|
BOOST_AUTO_TEST_CASE(SummaryConfigNode)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_MPI
|
#ifdef HAVE_MPI
|
||||||
auto val1 = Opm::SummaryNode{"test1", Opm::SummaryNode::Category::Region,
|
auto val1 = Opm::SummaryConfigNode{"test1", Opm::SummaryConfigNode::Category::Region,
|
||||||
Opm::Location{"test2", 1}}
|
Opm::Location{"test2", 1}}
|
||||||
.parameterType(Opm::SummaryNode::Type::Pressure)
|
.parameterType(Opm::SummaryConfigNode::Type::Pressure)
|
||||||
.namedEntity("test3")
|
.namedEntity("test3")
|
||||||
.number(2)
|
.number(2)
|
||||||
.isUserDefined(true);
|
.isUserDefined(true);
|
||||||
|
|
||||||
auto val2 = PackUnpack2(val1);
|
auto val2 = PackUnpack2(val1);
|
||||||
DO_CHECKS(SummaryNode)
|
DO_CHECKS(SummaryConfigNode)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2194,9 +2194,9 @@ BOOST_AUTO_TEST_CASE(SummaryNode)
|
|||||||
BOOST_AUTO_TEST_CASE(SummaryConfig)
|
BOOST_AUTO_TEST_CASE(SummaryConfig)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_MPI
|
#ifdef HAVE_MPI
|
||||||
auto node = Opm::SummaryNode{"test1", Opm::SummaryNode::Category::Region,
|
auto node = Opm::SummaryConfigNode{"test1", Opm::SummaryConfigNode::Category::Region,
|
||||||
Opm::Location{"test2", 1}}
|
Opm::Location{"test2", 1}}
|
||||||
.parameterType(Opm::SummaryNode::Type::Pressure)
|
.parameterType(Opm::SummaryConfigNode::Type::Pressure)
|
||||||
.namedEntity("test3")
|
.namedEntity("test3")
|
||||||
.number(2)
|
.number(2)
|
||||||
.isUserDefined(true);
|
.isUserDefined(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user