makding the StandardWell and WellInterface templated

with the template parameter TypeTag.
This commit is contained in:
Kai Bao
2017-06-19 14:49:49 +02:00
parent 182bf315f3
commit 1a4ceeec66
7 changed files with 103 additions and 65 deletions

View File

@@ -303,9 +303,10 @@ enum WellVariablePositions {
// 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<TypeTag> > > well_container_;
std::vector<std::shared_ptr<WellInterface> >
// TODO: forgot why returning a vector here
std::vector<std::shared_ptr<WellInterface<TypeTag> > >
createWellContainer(const std::vector<const Well*>& wells_ecl,
const Wells* wells_arg,
const int time_step);