@@ -552,7 +552,7 @@ interface.
552
552
- `periodic::NTuple{N}=ntuple(i->false,N)`: Use or not periodic boundaries per direction.
553
553
554
554
For convenience, one can also provide scalar inputs instead tuples
555
- to create 1D block partitions. In this case, the argument `np` is omitted
555
+ to create 1D block partitions. In this case, the argument `np` can be omitted
556
556
and it will be computed as `np=length(ranks)`.
557
557
558
558
# Examples
@@ -597,14 +597,16 @@ function uniform_partition(rank,np,n,args...)
597
597
end
598
598
599
599
function uniform_partition (rank,n:: Integer )
600
- uniform_partition (rank,( length (rank),),(n,) )
600
+ uniform_partition (rank,length (rank),n )
601
601
end
602
602
603
- function uniform_partition (rank,n:: Integer ,ghost:: Integer ,periodic:: Bool = false )
603
+ function uniform_partition (rank,n:: Integer ,ghost:: Bool ,periodic:: Bool = false )
604
604
uniform_partition (rank,length (rank),n,ghost,periodic)
605
605
end
606
606
607
- function uniform_partition (rank,np:: Integer ,n:: Integer ,ghost:: Integer ,periodic:: Bool = false )
607
+ function uniform_partition (rank,np:: Integer ,n:: Integer ) uniform_partition (rank,(np,),(n,)) end
608
+
609
+ function uniform_partition (rank,np:: Integer ,n:: Integer ,ghost:: Bool ,periodic:: Bool = false )
608
610
uniform_partition (rank,(np,),(n,),(ghost,),(periodic,))
609
611
end
610
612
0 commit comments