#1206 Updated the opm-flowdiag libraries

This commit is contained in:
Jacob Støren
2017-02-09 14:14:02 +01:00
parent 65f36d6a3f
commit 8596c3f79c
18 changed files with 2945 additions and 310 deletions

View File

@@ -323,18 +323,14 @@ namespace FlowDiagnostics
// Compute time-of-flight and tracer.
tracer_[cell] = is_start_[cell] ? 1.0 : upwind_tracer_contrib / total_influx;
//tof_[cell] = (pv_[cell]*tracer_[cell] + upwind_tof_contrib) / (total_influx*tracer_[cell]);
if ( tracer_[cell] > 0.0 )
{
if (tracer_[cell] > 0.0) {
tof_[cell] = (pv_[cell]*tracer_[cell] + upwind_tof_contrib)
/ (total_influx * tracer_[cell]);
/ (total_influx * tracer_[cell]);
}
else
{
else {
tof_[cell] = max_tof_;
}
}