Skip to content
Snippets Groups Projects
Commit 97f9cac7 authored by Andreas Gattringer's avatar Andreas Gattringer
Browse files

fixed output year logic

parent 3aa417bb
Branches
Tags
No related merge requests found
...@@ -118,7 +118,7 @@ bool is_output_year(const struct simulation_time *time) ...@@ -118,7 +118,7 @@ bool is_output_year(const struct simulation_time *time)
{ {
if (time->phase == PHASE_BURN_IN) return false; if (time->phase == PHASE_BURN_IN) return false;
if (time->output_interval <= 0) return false; if (time->output_interval <= 0) return false;
if (time->year_current % time->output_interval == 0 if ((time->year_current - time->year_start) % time->output_interval == 0
&& (time->phase == PHASE_SIMULATION || time->phase == PHASE_WARM_UP)) { && (time->phase == PHASE_SIMULATION || time->phase == PHASE_WARM_UP)) {
return true; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment