From 08fb977c532b51e1391dc626c2dc6cbc30a9a2c5 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Wed, 3 Apr 2013 23:37:32 +0000
Subject: [PATCH] One more GADGET-2 legacy header value written to the HDF5
 file for compatibility.

Former-commit-id: 4cdbfb5d852f54b838c532e2e98f7eecdaf29c48
---
 src/io.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/io.c b/src/io.c
index 7a1c3a5f3a..e8c57a256c 100644
--- a/src/io.c
+++ b/src/io.c
@@ -598,6 +598,8 @@ void write_output ( char* fileName, struct engine *e)
   /* GADGET-2 legacy values */
   writeAttribute(h_grp, "NumPart_Total", UINT, numParticles, 6);
   writeAttribute(h_grp, "NumPart_Total_HighWord", UINT, numParticlesHighWord, 6);
+  double MassTable[6] = {0., 0., 0., 0., 0., 0.};
+  writeAttribute(h_grp, "MassTable", DOUBLE, MassTable, 6);
   writeAttribute(h_grp, "Flag_Entropy_ICs", UINT, numParticlesHighWord, 6);
   writeAttribute(h_grp, "NumFilesPerSnapshot", INT, &numFiles, 1);
   
-- 
GitLab