Add proper support for source terms.

This fixes the problem with infinite tofs at sinks.
This commit is contained in:
Atgeirr Flø Rasmussen committed 2012-09-25 14:00:17 +02:00
1 parent 112aba50dd
commit a473422a82
3 files changed
+28 -8

No files matched your search

+1 -1
View File
@@ -220,7 +220,7 @@ main(int argc, char** argv)
// Solve time-of-flight.
std::vector<double> tof(num_cells, 0.0);
transport_timer.start();
tofsolver.solveTof(&state.faceflux()[0], &porevol[0], tof);
tofsolver.solveTof(&state.faceflux()[0], &porevol[0], &transport_src[0], tof);
transport_timer.stop();
double tt = transport_timer.secsSinceStart();
std::cout << "Transport solver took: " << tt << " seconds." << std::endl;