fixed: segfault due to taking a reference to temporary

This commit is contained in:
Arne Morten Kvarving 2024-04-03 14:34:55 +02:00
parent 1243148d38
commit bf83fab00d

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);