mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
adapted to the interface change of WellsManager
At the moment, for the ParallelDebugOutput, we put a dummy dyanmic_list_econ_limited, not sure how it will the parallel running. The basic problem is that when initialzing the globalWellState_, what will happen if they can not find state information for a well in the Wells*. If some defaulted values are used, then no big problem here.
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include <opm/parser/eclipse/EclipseState/Schedule/Events.hpp>
|
||||
#include <opm/core/utility/initHydroCarbonState.hpp>
|
||||
#include <opm/core/well_controls.h>
|
||||
#include <opm/core/wells/DynamicListEconLimited.hpp>
|
||||
|
||||
namespace Opm
|
||||
{
|
||||
@@ -131,6 +132,7 @@ namespace Opm
|
||||
unsigned int totalLinearIterations = 0;
|
||||
bool is_well_potentials_computed = param_.getDefault("compute_well_potentials", false );
|
||||
std::vector<double> well_potentials;
|
||||
DynamicListEconLimited dynamic_list_econ_limited;
|
||||
|
||||
// Main simulation loop.
|
||||
while (!timer.done()) {
|
||||
@@ -153,6 +155,7 @@ namespace Opm
|
||||
Opm::UgGridHelpers::cell2Faces(grid_),
|
||||
Opm::UgGridHelpers::beginFaceCentroids(grid_),
|
||||
props_.permeability(),
|
||||
dynamic_list_econ_limited,
|
||||
is_parallel_run_,
|
||||
well_potentials);
|
||||
const Wells* wells = wells_manager.c_wells();
|
||||
|
||||
Reference in New Issue
Block a user