Added TransportModelPolymer::setPreferredMethod().

This commit is contained in:
Atgeirr Flø Rasmussen 2012-06-13 15:44:46 +02:00
parent b6001c8dac
commit 42e862e7ec
2 changed files with 18 additions and 6 deletions

View File

@ -214,6 +214,14 @@ namespace Opm
void TransportModelPolymer::setPreferredMethod(SingleCellMethod method)
{
method_ = method;
}
void TransportModelPolymer::solve(const double* darcyflux,
const double* porevolume,
const double* source,

View File

@ -50,6 +50,9 @@ namespace Opm
const double tol,
const int maxit);
/// \TODO document me.
void setPreferredMethod(SingleCellMethod method);
/// Solve transport eqn with implicit Euler scheme, reordered.
/// \TODO Now saturation is expected to be one sw value per cell,
/// change to [sw so] per cell.
@ -62,6 +65,13 @@ namespace Opm
std::vector<double>& concentration,
std::vector<double>& cmax);
void solveGravity(const std::vector<std::vector<int> >& columns,
const double* porevolume,
const double dt,
std::vector<double>& saturation,
std::vector<double>& concentration,
std::vector<double>& cmax);
public: // But should be made private...
virtual void solveSingleCell(const int cell);
virtual void solveMultiCell(const int num_cells, const int* cells);
void solveSingleCellBracketing(int cell);
@ -73,12 +83,6 @@ namespace Opm
const int pos,
const double* gravflux);
int solveGravityColumn(const std::vector<int>& cells);
void solveGravity(const std::vector<std::vector<int> >& columns,
const double* porevolume,
const double dt,
std::vector<double>& saturation,
std::vector<double>& concentration,
std::vector<double>& cmax);
private: