diff --git a/src/parallel_io.c b/src/parallel_io.c index 5b99855a7a2200ada9796e2a6f7f3358a27ab06d..f073104e890f4ad33be92c0c9ceef3721c9f18aa 100644 --- a/src/parallel_io.c +++ b/src/parallel_io.c @@ -342,6 +342,8 @@ void readArray(hid_t grp, struct io_props props, size_t N, long long N_total, 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 { @@ -646,6 +648,8 @@ void writeArray(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 {