Commit ee5dbff0 authored by Topi Rasku's avatar Topi Rasku
Browse files

#87 Accounting for possible division by zero.

parent ba3f2269
...@@ -303,7 +303,7 @@ q_maxDownward(gnu(grid, node, unit), msft(m, s, f, t)) ...@@ -303,7 +303,7 @@ q_maxDownward(gnu(grid, node, unit), msft(m, s, f, t))
+ [ + [
+ p_gnu(grid, node, unit, 'unitSizeCons') + p_gnu(grid, node, unit, 'unitSizeCons')
+ p_gnu(grid, node, unit, 'maxCons')${not p_gnu(grid, node, unit, 'unitSizeCons') > 0} + p_gnu(grid, node, unit, 'maxCons')${not p_gnu(grid, node, unit, 'unitSizeCons') > 0}
/ p_unit(unit, 'unitCount') / ( p_unit(unit, 'unitCount') + 1${not p_unit(unit, 'unitCount') > 0} )
] ]
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
* [ * [
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment