From 5e5fba1e8cf5a28875d6e699d86844fe3a8f2f2e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Del=20Pino?= <stephane.delpino44@gmail.com>
Date: Tue, 22 Oct 2024 11:10:54 +0200
Subject: [PATCH] Deactivate HDF5 compression

---
 src/utils/Stop.cpp                     | 10 +++++-----
 src/utils/checkpointing/WriteArray.hpp |  6 +++---
 src/utils/checkpointing/WriteTable.hpp |  6 +++---
 3 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/utils/Stop.cpp b/src/utils/Stop.cpp
index 61e4b2ad0..c789beb3a 100644
--- a/src/utils/Stop.cpp
+++ b/src/utils/Stop.cpp
@@ -14,7 +14,7 @@
 bool
 stop()
 {
-  bool must_stop = false;
+  bool stop = false;
 
   if (parallel::rank() == 0) {
     std::filesystem::path stop_file("stop");
@@ -26,7 +26,7 @@ stop()
                                                          std::filesystem::last_write_time(stop_file))
           .count();
 
-      must_stop = elapse_time > stop_file_age;
+      stop = elapse_time > stop_file_age;
     }
 
 #ifdef PUGS_HAS_SLURM
@@ -36,7 +36,7 @@ stop()
       int slurm_job_id = std::atoi(env);
 
       if (slurm_get_rem_time(slurm_job_id) < 150) {
-        must_stop = true;
+        stop = true;
       }
 
       slurm_fini();
@@ -44,7 +44,7 @@ stop()
 #endif   // PUGS_HAS_SLURM
   }
 
-  parallel::broadcast(must_stop, 0);
+  parallel::broadcast(stop, 0);
 
-  return must_stop;
+  return stop;
 }
diff --git a/src/utils/checkpointing/WriteArray.hpp b/src/utils/checkpointing/WriteArray.hpp
index 495fc5fcd..5cff412b8 100644
--- a/src/utils/checkpointing/WriteArray.hpp
+++ b/src/utils/checkpointing/WriteArray.hpp
@@ -29,9 +29,9 @@ write(HighFive::Group& group, const std::string& name, const Array<DataType>& ar
 
   using data_type = std::remove_const_t<DataType>;
   HighFive::DataSetCreateProps properties;
-  properties.add(HighFive::Chunking(std::vector<hsize_t>{std::min(4ul * 1024ul * 1024ul, global_size)}));
-  properties.add(HighFive::Shuffle());
-  properties.add(HighFive::Deflate(3));
+  // properties.add(HighFive::Chunking(std::vector<hsize_t>{std::min(4ul * 1024ul * 1024ul, global_size)}));
+  // properties.add(HighFive::Shuffle());
+  // properties.add(HighFive::Deflate(3));
 
   auto xfer_props = HighFive::DataTransferProps{};
   xfer_props.add(HighFive::UseCollectiveIO{});
diff --git a/src/utils/checkpointing/WriteTable.hpp b/src/utils/checkpointing/WriteTable.hpp
index ad1336a6f..b52455950 100644
--- a/src/utils/checkpointing/WriteTable.hpp
+++ b/src/utils/checkpointing/WriteTable.hpp
@@ -36,9 +36,9 @@ write(HighFive::Group& group, const std::string& name, const Table<DataType>& ta
 
   using data_type = std::remove_const_t<DataType>;
   HighFive::DataSetCreateProps properties;
-  properties.add(HighFive::Chunking(std::vector<hsize_t>{std::min(4ul * 1024ul * 1024ul, global_size)}));
-  properties.add(HighFive::Shuffle());
-  properties.add(HighFive::Deflate(3));
+  // properties.add(HighFive::Chunking(std::vector<hsize_t>{std::min(4ul * 1024ul * 1024ul, global_size)}));
+  // properties.add(HighFive::Shuffle());
+  // properties.add(HighFive::Deflate(3));
 
   auto xfer_props = HighFive::DataTransferProps{};
   xfer_props.add(HighFive::UseCollectiveIO{});
-- 
GitLab