Merge pull request #5267 from akva2/fix_wbp_test_segfault

fixed: segfault due to taking a reference to temporary
This commit is contained in:
Bård Skaflestad 2024-04-03 15:16:19 +02:00 committed by GitHub
commit 91c3100497
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -565,9 +565,9 @@ BOOST_AUTO_TEST_CASE(Create)
BOOST_REQUIRE_EQUAL(comm.size(), 2);
const Opm::GridDims dims{5, 5, 10};
auto wbpCalcService = Opm::ParallelWBPCalculation {
Opm::GridDims { 5, 5, 10 },
comm
dims, comm
};
setCallbacks(comm.rank(), wbpCalcService);