mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-29 10:21:54 -06:00
#1117 Temporary patch from @bska. Waiting for an update to the opm-flowdiagnostics library
This commit is contained in:
parent
723e0f9286
commit
0cec31362b
@ -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_;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user