From 28b55dfa7638381f4ae7e964576fc3b4400c63a3 Mon Sep 17 00:00:00 2001
From: James Willis <james.s.willis@durham.ac.uk>
Date: Fri, 12 Oct 2018 14:13:12 +0100
Subject: [PATCH] Dump snapshot with particle group IDs.

---
 examples/main_fof.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/examples/main_fof.c b/examples/main_fof.c
index 72c096f5bb..b8a44227c5 100644
--- a/examples/main_fof.c
+++ b/examples/main_fof.c
@@ -1008,6 +1008,11 @@ int main(int argc, char *argv[]) {
   /* unused parameters */
   parser_write_params_to_file(params, "unused_parameters.yml", 0);
   
+  /* Write final output. */
+  engine_drift_all(&e);
+  engine_print_stats(&e);
+  engine_dump_snapshot(&e);
+
   /* Clean everything */
   if (with_verbose_timers) timers_close_file();
   if (with_cosmology) cosmology_clean(&cosmo);
-- 
GitLab