From 8c245e4b9b434bc3637e984703230eef3a563207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20P=C3=B6schel?= Date: Tue, 4 Aug 2026 13:16:01 +0200 Subject: [PATCH] Restrict rank count in example --- examples/4_read_parallel.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/4_read_parallel.py b/examples/4_read_parallel.py index 1f612c7d33..c6cd88b9a9 100644 --- a/examples/4_read_parallel.py +++ b/examples/4_read_parallel.py @@ -34,7 +34,8 @@ chunk_offset = [comm.rank + 1, 1, 1] chunk_extent = [2, 2, 1] - chunk_data = E_x.load_chunk(chunk_offset, chunk_extent) + if comm.rank < 13: + chunk_data = E_x.load_chunk(chunk_offset, chunk_extent) if 0 == comm.rank: print( @@ -50,7 +51,7 @@ print("Chunks have been read from disk") for i in range(comm.size): - if i == comm.rank: + if i == comm.rank and comm.rank < 13: print("Rank {} - Read chunk contains:".format(i)) for row in range(chunk_extent[0]): for col in range(chunk_extent[1]):