more or less getting the old implementation in

and compile now.
This commit is contained in:
Kai Bao
2017-06-15 17:19:49 +02:00
parent 0cf6699591
commit 2d02503091
8 changed files with 116 additions and 19 deletions

View File

@@ -49,6 +49,7 @@
#include <opm/autodiff/BlackoilModelParameters.hpp>
#include <opm/autodiff/WellStateFullyImplicitBlackoilDense.hpp>
#include <opm/autodiff/RateConverter.hpp>
#include <opm/autodiff/WellInterface.hpp>
#include<dune/common/fmatrix.hh>
#include<dune/istl/bcrsmatrix.hh>
#include<dune/istl/matrixmatrix.hh>
@@ -60,6 +61,7 @@
#include <math.h>
namespace Opm {
enum WellVariablePositions {
@@ -296,6 +298,18 @@ enum WellVariablePositions {
const Wells* wells_;
const std::vector< const Well* > wells_ecl_;
// a vector of all the wells.
// eventually, the wells_ above should be gone.
// the name is just temporary
// later, might make share_ptr const later.
// TODO: forget why make it share_ptr instead of unique_ptr
std::vector<std::shared_ptr<WellInterface> > well_container_;
std::vector<std::shared_ptr<WellInterface> >
createWellContainer(const std::vector<const Well*>& wells_ecl,
const Wells* wells_arg,
const int time_step);
// Well collection is used to enforce the group control
WellCollection* well_collection_;