mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-20 11:48:25 -06:00
add exit_failure for water+brine case
This commit is contained in:
parent
f73caf8a55
commit
300f536a19
@ -632,10 +632,10 @@ private:
|
||||
|
||||
int runBrine(const Phases& phases)
|
||||
{
|
||||
if (! phases.active(Phase::WATER)) {
|
||||
if (! phases.active(Phase::WATER) || phases.size() == 2) {
|
||||
if (outputCout_)
|
||||
std::cerr << "No valid configuration is found for brine simulation, valid options include "
|
||||
<< "oilwater + brine and blackoil + brine" << std::endl;
|
||||
<< "oilwater + brine, gaswater + brine and blackoil + brine" << std::endl;
|
||||
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user