WellState::report() to make opm-output Well data

This commit is contained in:
Jørgen Kvalsvik 2016-05-20 16:21:14 +02:00
parent b0b43e97b6
commit ec28c46842
2 changed files with 16 additions and 0 deletions

View File

@ -1,6 +1,8 @@
#include "BlackoilState.hpp"
#include <opm/common/util/numeric/cmp.hpp>
#include <opm/core/props/BlackoilPropertiesInterface.hpp>
#include <opm/core/simulator/WellState.hpp>
#include <opm/output/Wells.hpp>
using namespace Opm;

View File

@ -22,6 +22,8 @@
#include <opm/core/wells.h>
#include <opm/core/well_controls.h>
#include <opm/output/Wells.hpp>
#include <array>
#include <map>
#include <string>
@ -208,6 +210,18 @@ namespace Opm
return wellRates().size() / numWells();
}
virtual data::Wells report() const
{
return { { /* WellState offers no completion data, so that has to be added later */ },
this->bhp(),
this->temperature(),
this->wellRates(),
this->perfPress(),
this->perfRates() };
}
virtual ~WellState() {}
private:
std::vector<double> bhp_;
std::vector<double> thp_;