add exit_failure for water+brine case

This commit is contained in:
goncalvesmachadoc 2022-01-11 14:23:37 +01:00
parent f73caf8a55
commit 300f536a19

View File

@ -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;
}