mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Special case wells with no open connections in ParallelWellInfo
This commit is contained in:
@@ -468,3 +468,14 @@ BOOST_AUTO_TEST_CASE(GlobalPerfFactoryParallel1)
|
||||
testGlobalPerfFactoryParallel(1);
|
||||
testGlobalPerfFactoryParallel(3);
|
||||
}
|
||||
|
||||
|
||||
BOOST_AUTO_TEST_CASE(EmptyWell) {
|
||||
auto comm = Communication(Dune::MPIHelper::getCommunicator());
|
||||
Opm::ParallelWellInfo pw({"WELL1", true}, comm);
|
||||
pw.communicateFirstPerforation(false);
|
||||
double local_p = 1;
|
||||
auto global_p = pw.broadcastFirstPerforationValue(local_p);
|
||||
|
||||
BOOST_CHECK_EQUAL(local_p, global_p);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user