BUGFIX. Make frankenstein compile and run

- remove outout of initial timestep
- pass phaseUsage to report(...) in WellStateFullyImplicitBlackoil.hpp
This commit is contained in:
Tor Harald Sandve committed 2016-09-30 08:57:52 +02:00
1 parent 7d7e619333
commit 07339be80e
3 files changed
+4 -4

No files matched your search

@@ -239,7 +239,7 @@ public:
// write the inital state at the report stage
if (timer.initialStep()) {
output_writer_.writeTimeStep( timer, state, well_state, solver->model() );
//output_writer_.writeTimeStep( timer, state, well_state, solver->model() );
}
if( terminal_output_ )
@@ -167,7 +167,7 @@ namespace Opm
substep,
timer.simulationTimeElapsed(),
simToSolution( state, phaseUsage_ ),
wellState.report(),
wellState.report(phaseUsage_),
simProps);
}
}
@@ -276,8 +276,8 @@ namespace Opm
std::vector<double>& wellSolutions() { return well_solutions_; }
const std::vector<double>& wellSolutions() const { return well_solutions_; }
data::Wells report() const override {
data::Wells res = WellState::report();
data::Wells report(const PhaseUsage& pu) const override {
data::Wells res = WellState::report(pu);
const int nw = this->numWells();
// If there are now wells numPhases throws a floating point