Use new velocity interpolation interface.

The class TransportModelTracerTofDiscGal now uses
VelocityInterpolationInterface, and acts as a factory
internally, choosing an interpolation method depending on
the parameter 'use_cvi'.
This commit is contained in:
Atgeirr Flø Rasmussen committed 2012-10-16 11:11:33 +02:00
1 parent 121bb79f91
commit 7cf412340b
3 files changed
+27 -31

No files matched your search

+2 -1
View File
@@ -225,7 +225,8 @@ main(int argc, char** argv)
// Solve time-of-flight.
std::vector<double> tof;
if (use_dg) {
Opm::TransportModelTracerTofDiscGal tofsolver(*grid->c_grid());
bool use_cvi = param.getDefault("use_cvi", false);
Opm::TransportModelTracerTofDiscGal tofsolver(*grid->c_grid(), use_cvi);
transport_timer.start();
tofsolver.solveTof(&state.faceflux()[0], &porevol[0], &transport_src[0], dg_degree, tof);
transport_timer.stop();