mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
231f5374d7
commit
a80ad54d7d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user