Parallel runs not supported yet.

Gives a warning if gas lift optimization is attempted for more than one
process in the MPI communicator. The plan is to implement support for
muliple processes in a later commit.
This commit is contained in:
Håkon Hægland 2021-03-25 22:43:37 +01:00
parent 231f5374d7
commit a80ad54d7d

View File

@ -2692,6 +2692,13 @@ namespace Opm
{
gliftDebug("checking if GLIFT should be done..", deferred_logger);
std::size_t num_procs = ebos_simulator.gridView().comm().size();
if (num_procs > 1u) {
const std::string msg = fmt::format(" GLIFT: skipping optimization. "
"Parallel run not supported yet: num procs = {}", num_procs);
deferred_logger.warning(msg);
return false;
}
if (!well_state.gliftOptimizationEnabled()) {
gliftDebug("Optimization disabled in WellState", deferred_logger);
return false;