From 0138305bde3b8cc1e64b9d6f18d02def2365cdb4 Mon Sep 17 00:00:00 2001 From: lhausamm <loic_hausammann@hotmail.com> Date: Mon, 4 Jun 2018 10:19:51 +0200 Subject: [PATCH] Snaplist: last transformation implemented --- src/common_io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common_io.c b/src/common_io.c index 8066a305fd..f30eef1cff 100644 --- a/src/common_io.c +++ b/src/common_io.c @@ -991,7 +991,7 @@ void time_array_read_file(struct time_array *times, const char* filename, int type; if (!strcmp(line, "# Redshift")) type = TIME_ARRAY_REDSHIFT; - else if (!strcmp(line, "# Age")) + else if (!strcmp(line, "# Time")) type = TIME_ARRAY_AGE; else if (!strcmp(line, "# Scale Factor")) type = TIME_ARRAY_SCALE_FACTOR; @@ -1028,7 +1028,7 @@ void time_array_read_file(struct time_array *times, const char* filename, *time = cosmology_get_a_from_z(cosmo, *time); if (cosmo && type == TIME_ARRAY_AGE) - error("Not implemented"); + *time = cosmology_get_scale_factor(cosmo, *time); /* Update size */ times->size += 1; -- GitLab