From 239df74f07fd43a03a5775311c68ee99306519c0 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller Date: Mon, 23 Apr 2018 20:07:34 +0200 Subject: [PATCH] Define the cooling function data in the correct parallel i/o routine. --- src/parallel_io.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/parallel_io.c b/src/parallel_io.c index b5741fb74..df8c2edcf 100644 --- a/src/parallel_io.c +++ b/src/parallel_io.c @@ -860,8 +860,6 @@ void prepare_file(struct engine* e, const char* baseName, long long N_total[6], int periodic = e->s->periodic; int numFiles = 1; - const struct cooling_function_data* cooling = e->cooling_func; - /* First time, we need to create the XMF file */ if (e->snapshotOutputCount == 0) xmf_create_file(baseName); @@ -1084,6 +1082,7 @@ void write_output_parallel(struct engine* e, const char* baseName, const struct gpart* gparts = e->s->gparts; struct gpart* dmparts = NULL; const struct spart* sparts = e->s->sparts; + const struct cooling_function_data* cooling = e->cooling_func; /* Number of unassociated gparts */ const size_t Ndm = Ntot > 0 ? Ntot - (Ngas + Nstars) : 0; -- 2.26.2