From 5076dc362c44a4a82f9bdd123489909aac1ab57c Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Fri, 27 Dec 2019 11:54:17 +0100
Subject: [PATCH] Also allow the writing of large spart and bpart arrays (>2GB
 / node) in parallel-io.

---
 src/parallel_io.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/parallel_io.c b/src/parallel_io.c
index fa91fbf110..1b397275ca 100644
--- a/src/parallel_io.c
+++ b/src/parallel_io.c
@@ -345,6 +345,8 @@ void read_array_parallel(hid_t grp, struct io_props props, size_t N,
       props.parts += max_chunk_size;                  /* part* on the part */
       props.xparts += max_chunk_size;                 /* xpart* on the xpart */
       props.gparts += max_chunk_size;                 /* gpart* on the gpart */
+      props.sparts += max_chunk_size;                 /* spart* on the spart */
+      props.bparts += max_chunk_size;                 /* bpart* on the bpart */
       offset += max_chunk_size;
       redo = 1;
     } else {
@@ -652,6 +654,8 @@ void write_array_parallel(struct engine* e, hid_t grp, char* fileName,
       props.parts += max_chunk_size;                  /* part* on the part */
       props.xparts += max_chunk_size;                 /* xpart* on the xpart */
       props.gparts += max_chunk_size;                 /* gpart* on the gpart */
+      props.sparts += max_chunk_size;                 /* spart* on the spart */
+      props.bparts += max_chunk_size;                 /* bpart* on the bpart */
       offset += max_chunk_size;
       redo = 1;
     } else {
-- 
GitLab