Skip to content

Commit 05a6906

Browse files
committed
Fix the Julia test of LHS
1 parent 53c26a7 commit 05a6906

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

GALAHAD.jl/test/test_lhs.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function test_lhs(::Type{T}, ::Type{INT}) where {T,INT}
1919
# Parameters
2020
n_dimen = INT(7) # dimension
2121
n_points = INT(2) # points required
22-
X = zeros(INT, n_points, n_dimen) # points
22+
X = zeros(INT, n_dimen, n_points) # points
2323
seed = Ref{INT}()
2424

2525
# Set a random seed
@@ -30,9 +30,9 @@ function test_lhs(::Type{T}, ::Type{INT}) where {T,INT}
3030

3131
if inform[].status == 0 # successful return
3232
@printf("LHS successful\n")
33-
for i in 1:n_points
34-
@printf("Point %d = [", i)
35-
for j in 1:n_dimen
33+
for j in 1:n_points
34+
@printf("Point %d = [", j)
35+
for i in 1:n_dimen
3636
@printf("%d ", X[i,j])
3737
end
3838
@printf("]\n")

0 commit comments

Comments
 (0)