Skip to content

Commit

Permalink
Fix the Julia test of LHS
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Jan 11, 2025
1 parent 53c26a7 commit 05a6906
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions GALAHAD.jl/test/test_lhs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function test_lhs(::Type{T}, ::Type{INT}) where {T,INT}
# Parameters
n_dimen = INT(7) # dimension
n_points = INT(2) # points required
X = zeros(INT, n_points, n_dimen) # points
X = zeros(INT, n_dimen, n_points) # points
seed = Ref{INT}()

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

if inform[].status == 0 # successful return
@printf("LHS successful\n")
for i in 1:n_points
@printf("Point %d = [", i)
for j in 1:n_dimen
for j in 1:n_points
@printf("Point %d = [", j)
for i in 1:n_dimen
@printf("%d ", X[i,j])
end
@printf("]\n")
Expand Down

0 comments on commit 05a6906

Please sign in to comment.