From fe4efaab4b197e1d38e9f3318ae34e8b1ce5388f Mon Sep 17 00:00:00 2001 From: Florian Deconinck Date: Fri, 5 Jun 2026 12:20:10 -0400 Subject: [PATCH] Weaken the cube-sphere communicator hard ranks limit. We need "at least" not "exactly" the rank number --- ndsl/comm/communicator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndsl/comm/communicator.py b/ndsl/comm/communicator.py index 65d72018..abb70ec8 100644 --- a/ndsl/comm/communicator.py +++ b/ndsl/comm/communicator.py @@ -786,7 +786,7 @@ def __init__( "Communicator needs to be instantiated with communication subsystem" f" derived from `comm_abc.Comm`, got {type(comm)}." ) - if comm.Get_size() != partitioner.total_ranks: + if comm.Get_size() < partitioner.total_ranks: raise ValueError( f"was given a partitioner for {partitioner.total_ranks} ranks but a " f"comm object with only {comm.Get_size()} ranks, are we running "