From 2d23a97e9a4e50d4bac38e5a88c506a6810c6dbf Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Wed, 13 Dec 2017 14:57:29 +0000
Subject: [PATCH] Moved an #ifdef HDF5 in the common_io section and removed
 incorrect comment related to XMF files.

---
 src/common_io.c | 18 ++----------------
 1 file changed, 2 insertions(+), 16 deletions(-)

diff --git a/src/common_io.c b/src/common_io.c
index 47e04b868b..e55da15b8d 100644
--- a/src/common_io.c
+++ b/src/common_io.c
@@ -406,6 +406,8 @@ void io_write_code_description(hid_t h_file) {
   H5Gclose(h_grpcode);
 }
 
+#endif /* HAVE_HDF5 */
+
 /**
  * @brief Mapper function to copy #part or #gpart fields into a buffer.
  */
@@ -608,22 +610,6 @@ void io_copy_temp_buffer(void* temp, const struct engine* e,
   }
 }
 
-#endif /* HAVE_HDF5 */
-
-/* ------------------------------------------------------------------------------------------------
- * This part writes the XMF file descriptor enabling a visualisation through
- * ParaView
- * ------------------------------------------------------------------------------------------------
- */
-
-/**
- * @brief Prepares the XMF file for the new entry
- *
- * Creates a temporary file on the disk in order to copy the right lines.
- *
- * @todo Use a proper XML library to avoid stupid copies.
- */
-
 /**
  * @brief Prepare the DM particles (in gparts) read in for the addition of the
  * other particle types
-- 
GitLab