From e8ae27ef002f5349d478e0822cf0d54caba69f4d Mon Sep 17 00:00:00 2001
From: lhausamm <loic_hausammann@hotmail.com>
Date: Sun, 27 May 2018 20:00:48 +0200
Subject: [PATCH] logger writes all particles at begining

---
 examples/main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/examples/main.c b/examples/main.c
index c935ba51a6..d99dec04b5 100644
--- a/examples/main.c
+++ b/examples/main.c
@@ -1008,6 +1008,8 @@ int main(int argc, char *argv[]) {
 
   /* Write the state of the system before starting time integration. */
 #ifdef WITH_LOGGER
+    logger_ensure_size(e.log, e.total_nr_parts, e.total_nr_gparts, 0);
+    logger_log_all(e.log, &e);
     engine_dump_index(&e);
 #endif
     engine_dump_snapshot(&e);
-- 
GitLab