diff --git a/src/feedback/GEAR/lifetime.h b/src/feedback/GEAR/lifetime.h index 78a7ac16b226901c01cd24ad01245f118f3391af..d922129642766b070920f8324fbbcf1f9a10a6f0 100644 --- a/src/feedback/GEAR/lifetime.h +++ b/src/feedback/GEAR/lifetime.h @@ -149,9 +149,6 @@ __attribute__((always_inline)) INLINE static void lifetime_read_from_tables( lt->constant[i] = tmp[i + 2 * dim]; } - /* Change units from yr into Myr */ - lt->constant[dim - 1] -= 6; - /* Cleanup everything */ free(tmp); h5_close_group(file_id, group_id); @@ -196,6 +193,11 @@ __attribute__((always_inline)) INLINE static void lifetime_init( /* overwrite the parameters if found in the params */ lifetime_read_from_params(lt, params); + + /* Change units from yr into Myr */ + const int dim = 3; + lt->constant[dim - 1] -= 6; + } /**