Added solveMultiCell() method to match change in interface. Currently throwing.

This commit is contained in:
Atgeirr Flø Rasmussen 2012-02-15 22:52:32 +01:00
parent 6b60550f6e
commit d041c98f21
2 changed files with 11 additions and 2 deletions

View File

@ -204,7 +204,7 @@ namespace Opm
void TransportModelPolymer::solveSingleCell(int cell) void TransportModelPolymer::solveSingleCell(const int cell)
{ {
ResidualC res(*this, cell); ResidualC res(*this, cell);
const double a = 0.0; const double a = 0.0;
@ -221,6 +221,14 @@ namespace Opm
void TransportModelPolymer::solveMultiCell(const int num_cells, const int* /*cells*/)
{
THROW("TransportModelPolymer::solveMultiCell() not yet implemented, "
"got a component of size " << num_cells);
}
double TransportModelPolymer::fracFlow(double s, double c, int cell) const double TransportModelPolymer::fracFlow(double s, double c, int cell) const
{ {
double c_max_limit = polyprops_.c_max_limit; double c_max_limit = polyprops_.c_max_limit;

View File

@ -82,7 +82,8 @@ namespace Opm
double* concentration, double* concentration,
double* cmax); double* cmax);
virtual void solveSingleCell(int cell); virtual void solveSingleCell(const int cell);
virtual void solveMultiCell(const int num_cells, const int* cells);
private: private:
const UnstructuredGrid& grid_; const UnstructuredGrid& grid_;