ParseContext is used to handle the exceptions when parsing COMPSEGS

This commit is contained in:
Kai Bao
2019-05-23 13:13:36 +02:00
parent 43c5d3509a
commit 584defebe0
11 changed files with 51 additions and 21 deletions

View File

@@ -87,7 +87,10 @@ BOOST_AUTO_TEST_CASE(MultisegmentWellTest) {
segment_set.loadWELSEGS(welsegs);
BOOST_CHECK_EQUAL(6U, segment_set.size());
const Opm::WellConnections * new_connection_set = Opm::newConnectionsWithSegments(compsegs, connection_set, segment_set, grid);
Opm::ErrorGuard errorGuard;
Opm::ParseContext parseContext;
const Opm::WellConnections * new_connection_set = Opm::newConnectionsWithSegments(compsegs, connection_set, segment_set, grid, parseContext, errorGuard);
BOOST_CHECK_EQUAL(7U, new_connection_set->size());