Skip to content

Commit b99e045

Browse files
committed
revert function signature
1 parent 7509578 commit b99e045

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/p_range.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ interface.
552552
- `periodic::NTuple{N}=ntuple(i->false,N)`: Use or not periodic boundaries per direction.
553553
554554
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
556556
and it will be computed as `np=length(ranks)`.
557557
558558
# Examples
@@ -597,14 +597,16 @@ function uniform_partition(rank,np,n,args...)
597597
end
598598

599599
function uniform_partition(rank,n::Integer)
600-
uniform_partition(rank,(length(rank),),(n,))
600+
uniform_partition(rank,length(rank),n)
601601
end
602602

603-
function uniform_partition(rank,n::Integer,ghost::Integer,periodic::Bool=false)
603+
function uniform_partition(rank,n::Integer,ghost::Bool,periodic::Bool=false)
604604
uniform_partition(rank,length(rank),n,ghost,periodic)
605605
end
606606

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)
608610
uniform_partition(rank,(np,),(n,),(ghost,),(periodic,))
609611
end
610612

0 commit comments

Comments
 (0)