Commit 0f075db0 authored by Niina Helistö's avatar Niina Helistö
Browse files

Fixing a division by zero problem that sometimes occurred when writing results...

Fixing a division by zero problem that sometimes occurred when writing results (very small but nonzero r_gnuTotalGen(grid, node, unit)).
parent 42b5db64
...@@ -241,7 +241,7 @@ loop(m, ...@@ -241,7 +241,7 @@ loop(m,
); // END sum(ft_realizedNoReset) ); // END sum(ft_realizedNoReset)
// Approximate utilization rates for gnus over the simulation // Approximate utilization rates for gnus over the simulation
r_gnuUtilizationRate(gnu_output(grid, node, unit))${r_gnuTotalGen(grid, node, unit)} r_gnuUtilizationRate(gnu_output(grid, node, unit))${r_gnuTotalGen(grid, node, unit) and (p_gnu(grid, node, unit, 'maxGen') or r_invest(unit))}
= r_gnuTotalGen(grid, node, unit) = r_gnuTotalGen(grid, node, unit)
/ [ / [
+ (p_gnu(grid, node, unit, 'maxGen') + r_invest(unit)*p_gnu(grid, node, unit, 'unitSizeGen')) + (p_gnu(grid, node, unit, 'maxGen') + r_invest(unit)*p_gnu(grid, node, unit, 'unitSizeGen'))
......
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