#1117 Temporary patch from @bska. Waiting for an update to the opm-flowdiagnostics library

This commit is contained in:
Jacob Støren 2017-01-16 09:27:23 +01:00
parent 723e0f9286
commit 0cec31362b

View File

@ -323,7 +323,18 @@ 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]);
//tof_[cell] = (pv_[cell]*tracer_[cell] + upwind_tof_contrib) / (total_influx*tracer_[cell]);
if ( tracer_[cell] > 0.0 )
{
tof_[cell] = (pv_[cell]*tracer_[cell] + upwind_tof_contrib)
/ (total_influx * tracer_[cell]);
}
else
{
tof_[cell] = max_tof_;
}
}