From f650a8901febfa448e57de417fcb55074263d3b3 Mon Sep 17 00:00:00 2001 From: Andreas Gattringer <andreas.gattringer@univie.ac.at> Date: Tue, 30 Jan 2024 15:03:36 +0100 Subject: [PATCH] reintroduce change that was accidentally included in copyright notice update --- src/cats/environment/load_environment.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cats/environment/load_environment.c b/src/cats/environment/load_environment.c index 9cd3034..49da1ba 100644 --- a/src/cats/environment/load_environment.c +++ b/src/cats/environment/load_environment.c @@ -141,12 +141,12 @@ load_environment_if_needed(struct cats_configuration *conf, struct cats_environm int end = start + environment->interpolation_interval; - - log_message(LOG_INFO, - "%s: loading interpolated %s %s for year %d (interpolated between %d and %d)", - short_name, name, environment->pattern, time, start, end); - load_environment_interpolated(conf, environment, start, end, time); - + if (time != conf->time.year_start + conf->time.simulation_length) { + log_message(LOG_INFO, + "%s: loading interpolated %s %s for year %d (interpolated between %d and %d)", + short_name, name, environment->pattern, time, start, end); + load_environment_interpolated(conf, environment, start, end, time); + } } } -- GitLab