mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-13 17:32:03 -05:00
Relegating implementation details.
This commit is contained in:
1 parent
c406216c7f
commit
33511b45c1
3 files changed
+5
-7
No files matched your search
@@ -269,7 +269,7 @@ linearSolveBatchwise_(const TracerMatrix& M, std::vector<TracerVector>& x, std::
|
|||||||
verbosity);
|
verbosity);
|
||||||
|
|
||||||
bool converged = true;
|
bool converged = true;
|
||||||
for (int nrhs =0; nrhs < b.size(); ++nrhs) {
|
for (size_t nrhs =0; nrhs < b.size(); ++nrhs) {
|
||||||
x[nrhs] = 0.0;
|
x[nrhs] = 0.0;
|
||||||
Dune::InverseOperatorResult result;
|
Dune::InverseOperatorResult result;
|
||||||
solver.apply(x[nrhs], b[nrhs], result);
|
solver.apply(x[nrhs], b[nrhs], result);
|
||||||
|
|||||||
@@ -63,7 +63,6 @@
|
|||||||
#include <opm/simulators/wells/WellProdIndexCalculator.hpp>
|
#include <opm/simulators/wells/WellProdIndexCalculator.hpp>
|
||||||
#include <opm/simulators/wells/ParallelWellInfo.hpp>
|
#include <opm/simulators/wells/ParallelWellInfo.hpp>
|
||||||
#include <opm/simulators/timestepping/gatherConvergenceReport.hpp>
|
#include <opm/simulators/timestepping/gatherConvergenceReport.hpp>
|
||||||
#include <ebos/eclgenerictracermodel.hh>
|
|
||||||
#include <dune/common/fmatrix.hh>
|
#include <dune/common/fmatrix.hh>
|
||||||
#include <dune/istl/bcrsmatrix.hh>
|
#include <dune/istl/bcrsmatrix.hh>
|
||||||
#include <dune/istl/matrixmatrix.hh>
|
#include <dune/istl/matrixmatrix.hh>
|
||||||
@@ -219,7 +218,7 @@ namespace Opm {
|
|||||||
return this->wasDynamicallyShutThisTimeStep(well_ndex);
|
return this->wasDynamicallyShutThisTimeStep(well_ndex);
|
||||||
});
|
});
|
||||||
|
|
||||||
this->assignWellTracerRates(wsrpt, ebosSimulator_.problem().tracerModel().getWellTracerRates());
|
this->assignWellTracerRates(wsrpt);
|
||||||
|
|
||||||
this->assignWellGuideRates(wsrpt);
|
this->assignWellGuideRates(wsrpt);
|
||||||
this->assignShutConnections(wsrpt, this->reportStepIndex());
|
this->assignShutConnections(wsrpt, this->reportStepIndex());
|
||||||
@@ -382,8 +381,7 @@ namespace Opm {
|
|||||||
|
|
||||||
void computeWellTemperature();
|
void computeWellTemperature();
|
||||||
|
|
||||||
void assignWellTracerRates(data::Wells& wsrpt,
|
void assignWellTracerRates(data::Wells& wsrpt) const;
|
||||||
const std::map<std::pair<std::string, std::string>, double>& wellTracerRates) const;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
BlackoilWellModel(Simulator& ebosSimulator, const PhaseUsage& pu);
|
BlackoilWellModel(Simulator& ebosSimulator, const PhaseUsage& pu);
|
||||||
|
|||||||
@@ -1567,9 +1567,9 @@ namespace Opm {
|
|||||||
template <typename TypeTag>
|
template <typename TypeTag>
|
||||||
void
|
void
|
||||||
BlackoilWellModel<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
assignWellTracerRates(data::Wells& wsrpt,
|
assignWellTracerRates(data::Wells& wsrpt) const
|
||||||
const std::map<std::pair<std::string, std::string>, double>& wellTracerRates) const
|
|
||||||
{
|
{
|
||||||
|
const auto & wellTracerRates = ebosSimulator_.problem().tracerModel().getWellTracerRates();
|
||||||
|
|
||||||
if (wellTracerRates.empty())
|
if (wellTracerRates.empty())
|
||||||
return; // no tracers
|
return; // no tracers
|
||||||
|
|||||||
Reference in new issue
Block a user