Add proper support for source terms.
This fixes the problem with infinite tofs at sinks.
This commit is contained in:
1 parent
112aba50dd
commit
a473422a82
3 files changed
+28
-8
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user