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:
1 parent
121bb79f91
commit
7cf412340b
3 files changed
+27
-31
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user