Skip to content
This repository was archived by the owner on Jul 3, 2021. It is now read-only.

Commit 883f44f

Browse files
authored
style: automatically format .jl files
1 parent ecdf0e7 commit 883f44f

5 files changed

Lines changed: 129 additions & 89 deletions

File tree

Project-1/example/demo.jl

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -41,24 +41,21 @@ julia> yt0012(0.13)
4141
"""
4242
Base.@pure function yt0012::T where {T<:Real})
4343
ε = 0.0050544107511712
44-
return 5 * 0.12 * (
45-
if 0 <= ξ <= 1
46-
0.2969 * sqrt(ξ) -
47-
0.1260 * ξ -
48-
0.3516 * ξ^2 +
49-
0.2843 * ξ^3 -
50-
0.1015 * ξ^4
51-
elseif 1 < ξ <= 1+ε # 2-order smooth joining of the tail edge.
52-
0.03423616658680458 * sqrt(1+ε - ξ) +
53-
0.12491972188290168 * (1+ε - ξ) +
54-
11.579398976610927 * (1+ε - ξ)^2 +
55-
12.21202728162769 * (1+ε - ξ)^3
56-
else
57-
0
58-
end)
44+
return 5 *
45+
0.12 *
46+
(if 0 <= ξ <= 1
47+
0.2969 * sqrt(ξ) - 0.1260 * ξ - 0.3516 * ξ^2 + 0.2843 * ξ^3 - 0.1015 * ξ^4
48+
elseif 1 < ξ <= 1 + ε # 2-order smooth joining of the tail edge.
49+
0.03423616658680458 * sqrt(1 + ε - ξ) +
50+
0.12491972188290168 * (1 + ε - ξ) +
51+
11.579398976610927 * (1 + ε - ξ)^2 +
52+
12.21202728162769 * (1 + ε - ξ)^3
53+
else
54+
0
55+
end)
5956
end
6057

61-
const Mx, My = 100+1, 20+1
58+
const Mx, My = 100 + 1, 20 + 1
6259

6360
include(normpath(joinpath(@__DIR__, "../../src/misc-util.jl")))
6461
using .__CFD2021__misc_util__: tuplejoin
@@ -127,8 +124,12 @@ interpolated_x = Array{Float64}(undef, (length(v) for v in x_lo)...);
127124
interpolated_y = Array{Float64}(undef, (length(v) for v in y_lo)...);
128125
@btime transfinite_interpolate_2d!(interpolated_x, x_lo, x_hi)
129126
@btime transfinite_interpolate_2d!(interpolated_y, y_lo, y_hi)
130-
for u in axes(interpolated_x)[begin] plot!(p,interpolated_x[u,:], interpolated_y[u,:], label = nothing, color = myblue); end
131-
for u in axes(interpolated_x)[ end ] plot!(p,interpolated_x[:,u], interpolated_y[:,u], label = nothing, color = myblue); end
127+
for u in axes(interpolated_x)[begin]
128+
plot!(p, interpolated_x[u, :], interpolated_y[u, :]; label=nothing, color=myblue)
129+
end
130+
for u in axes(interpolated_x)[end]
131+
plot!(p, interpolated_x[:, u], interpolated_y[:, u]; label=nothing, color=myblue)
132+
end
132133
# for u in axes(interpolated_x)[begin] plot!(p,interpolated_x[u,:],-interpolated_y[u,:], label = nothing, color = myblue); end
133134
# for u in axes(interpolated_x)[ end ] plot!(p,interpolated_x[:,u],-interpolated_y[:,u], label = nothing, color = myblue); end
134135
plot!(p, yt0012, 0, 1; label=nothing, color=:red)

Project-1/src/transfinite-interpolate.jl

Lines changed: 66 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ function transfinite_interpolate_2d(f_lo::Tuple{Function,Function},
7070

7171
function interpolating_function(u::NTuple{2,T} where {T<:Number})::Number
7272
#= linear-part from edges bilinear-part from vertices =#
73-
(1-u[2])*f_lo[1](u[1]) - (1-u[1])*(1-u[2])*v_cr[1,1] +
74-
( u[2])*f_hi[1](u[1]) - ( u[1])*(1-u[2])*v_cr[1,2] +
75-
(1-u[1])*f_lo[2](u[2]) - (1-u[1])*( u[2])*v_cr[2,1] +
76-
( u[1])*f_hi[2](u[2]) - ( u[1])*( u[2])*v_cr[2,2]
73+
return (1 - u[2]) * f_lo[1](u[1]) - (1 - u[1]) * (1 - u[2]) * v_cr[1, 1] +
74+
(u[2]) * f_hi[1](u[1]) - (u[1]) * (1 - u[2]) * v_cr[1, 2] +
75+
(1 - u[1]) * f_lo[2](u[2]) - (1 - u[1]) * (u[2]) * v_cr[2, 1] +
76+
(u[1]) * f_hi[2](u[2]) - (u[1]) * (u[2]) * v_cr[2, 2]
7777
end
7878
return interpolating_function
7979
end
@@ -107,60 +107,76 @@ julia> transfinite_interpolate_2d(([0,0.5,1], [0,0.5,1]), ([1,1.5,2], [1,1.5,2])
107107
1.0 1.5 2.0
108108
```
109109
"""
110-
function transfinite_interpolate_2d( # for regular Arrays
111-
v_lo::Tuple{Vector{T}, Vector{S}} where {T <: Real, S <: Real},
112-
v_hi::Tuple{Vector{T}, Vector{S}} where {T <: Real, S <: Real},
113-
v_cr::Union{Nothing, SMatrix{2, 2, T} where T <: Real} = nothing)::Array{Real, 2}
110+
function transfinite_interpolate_2d(v_lo::Tuple{Vector{T},
111+
Vector{S}} where {T<:Real,S<:Real},
112+
v_hi::Tuple{Vector{T},
113+
Vector{S}} where {T<:Real,S<:Real};
114+
v_cr::Union{Nothing,SMatrix{2,2,T} where T<:Real}=nothing)::Array{Real,
115+
2}
114116

115117
#= check dimension-compatibility before allocating anything =#
116-
length(v_lo) == length(v_hi) || throw(
117-
DimensionMismatch(" incompatible grid specification ($(length(v_lo))-d at one end but $(length(v_hi))-d at the other)."))
118-
N = length(v_lo); errmsg = "" #= In this function, dimensions are always indexed from 1, but not so for each axis of them =#
119-
for dim in eachindex(v_lo) if ! (axes(v_lo[dim]) == axes(v_hi[dim]))
120-
errmsg *= "grid mismatch in dimension $(dim) ($(axes(v_lo[dim])) at one end but $(axes(v_hi[dim])) at the other)."
121-
end end; errmsg == "" || throw(DimensionMismatch(errmsg))
118+
length(v_lo) == length(v_hi) ||
119+
throw(DimensionMismatch(" incompatible grid specification ($(length(v_lo))-d at one end but $(length(v_hi))-d at the other)."))
120+
N = length(v_lo)
121+
errmsg = "" #= In this function, dimensions are always indexed from 1, but not so for each axis of them =#
122+
for dim in eachindex(v_lo)
123+
if !(axes(v_lo[dim]) == axes(v_hi[dim]))
124+
errmsg *= "grid mismatch in dimension $(dim) ($(axes(v_lo[dim])) at one end but $(axes(v_hi[dim])) at the other)."
125+
end
126+
end
127+
errmsg == "" || throw(DimensionMismatch(errmsg))
122128

123129
interpolated_array = Array{Float64}(undef, (length(v) for v in v_lo)...)
124130
transfinite_interpolate_2d!(interpolated_array, v_lo, v_hi, v_cr)
125131
return interpolated_array
126132
end
127-
function transfinite_interpolate_2d( # for OffsetArrays
128-
v_lo::Tuple{OffsetArray, OffsetArray},
129-
v_hi::Tuple{OffsetArray, OffsetArray},
130-
v_cr::Union{Nothing, SMatrix{2, 2, T} where T <: Real} = nothing)::OffsetArray
133+
function transfinite_interpolate_2d(v_lo::Tuple{OffsetArray,OffsetArray},
134+
v_hi::Tuple{OffsetArray,OffsetArray};
135+
v_cr::Union{Nothing,SMatrix{2,2,T} where T<:Real}=nothing)::OffsetArray
131136

132137
#= check dimension-compatibility before allocating anything =#
133-
length(v_lo) == length(v_hi) || throw(
134-
DimensionMismatch(" incompatible grid specification ($(length(v_lo))-d at one end but $(length(v_hi))-d at the other)."))
135-
N = length(v_lo); errmsg = "" #= In this function, dimensions are always indexed from 1, but not so for each axis of them =#
136-
for dim in eachindex(v_lo) if ! (axes(v_lo[dim]) == axes(v_hi[dim]))
137-
errmsg *= "grid mismatch in dimension $(dim) ($(axes(v_lo[dim])) at one end but $(axes(v_hi[dim])) at the other)."
138-
end end; errmsg == "" || throw(DimensionMismatch(errmsg))
138+
length(v_lo) == length(v_hi) ||
139+
throw(DimensionMismatch(" incompatible grid specification ($(length(v_lo))-d at one end but $(length(v_hi))-d at the other)."))
140+
N = length(v_lo)
141+
errmsg = "" #= In this function, dimensions are always indexed from 1, but not so for each axis of them =#
142+
for dim in eachindex(v_lo)
143+
if !(axes(v_lo[dim]) == axes(v_hi[dim]))
144+
errmsg *= "grid mismatch in dimension $(dim) ($(axes(v_lo[dim])) at one end but $(axes(v_hi[dim])) at the other)."
145+
end
146+
end
147+
errmsg == "" || throw(DimensionMismatch(errmsg))
139148

140149
interpolated_array = Array{Float64}(undef, (length(v) for v in v_lo)...)
141-
interpolated_array = OffsetArray(interpolated_array, tuplejoin((axes(v) for v in v_lo)...))
150+
interpolated_array = OffsetArray(interpolated_array,
151+
tuplejoin((axes(v) for v in v_lo)...))
142152
transfinite_interpolate_2d!(interpolated_array, v_lo, v_hi, v_cr)
143153
return interpolated_array
144154
end
145-
function transfinite_interpolate_2d!( # for regular Arrays
146-
interpolated_array::Array{T, 2} where T <: Real,
147-
v_lo::Tuple{Vector{T}, Vector{S}} where {T <: Real, S <: Real},
148-
v_hi::Tuple{Vector{T}, Vector{S}} where {T <: Real, S <: Real},
149-
v_cr::Union{Nothing, SMatrix{2, 2, T} where T <: Real} = nothing)
150-
155+
function transfinite_interpolate_2d!(interpolated_array::Array{T,2} where {T<:Real},
156+
v_lo::Tuple{Vector{T},
157+
Vector{S}} where {T<:Real,S<:Real},
158+
v_hi::Tuple{Vector{T},
159+
Vector{S}} where {T<:Real,S<:Real},
160+
v_cr::Union{Nothing,SMatrix{2,2,T} where T<:Real}=nothing)
151161
if typeof(v_cr) <: Nothing # e.g, the following lines still assumes range ``1:2``.
152-
v_cr = SA[(v_lo[1][begin]+v_lo[2][begin])/2 (v_lo[1][ end ]+v_hi[2][begin])/2
153-
(v_hi[1][begin]+v_lo[2][ end ])/2 (v_hi[1][ end ]+v_hi[2][ end ])/2]
154-
end; M = [length(v)-1 for v in v_lo] # this is only for scaling, and never for iterating
162+
v_cr = SA[(v_lo[1][begin] + v_lo[2][begin])/2 (v_lo[1][end] + v_hi[2][begin])/2
163+
(v_hi[1][begin] + v_lo[2][end])/2 (v_hi[1][end] + v_hi[2][end])/2]
164+
end
165+
M = [length(v) - 1 for v in v_lo] # this is only for scaling, and never for iterating
155166

156167
# loop Version
157168
for u in CartesianIndices(interpolated_array) #= #= Deprecated =# Iterators.product(IndexCartesian(), [eachindex(v) for v in v_lo]...) =#
158169
interpolated_array[u] =
159170
#= linear-part from edges bilinear-part from vertices =#
160-
(1-(u[2]-1)/M[2])*v_lo[1][u[1]] - (1-(u[1]-1)/M[1])*(1-(u[2]-1)/M[2])*v_cr[1,1] +
161-
( (u[2]-1)/M[2])*v_hi[1][u[1]] - ( (u[1]-1)/M[1])*(1-(u[2]-1)/M[2])*v_cr[1,2] +
162-
(1-(u[1]-1)/M[1])*v_lo[2][u[2]] - (1-(u[1]-1)/M[1])*( (u[2]-1)/M[2])*v_cr[2,1] +
163-
( (u[1]-1)/M[1])*v_hi[2][u[2]] - ( (u[1]-1)/M[1])*( (u[2]-1)/M[2])*v_cr[2,2]
171+
(1 - (u[2] - 1) / M[2]) * v_lo[1][u[1]] -
172+
(1 - (u[1] - 1) / M[1]) *
173+
(1 - (u[2] - 1) / M[2]) *
174+
v_cr[1, 1] + ((u[2] - 1) / M[2]) * v_hi[1][u[1]] -
175+
((u[1] - 1) / M[1]) * (1 - (u[2] - 1) / M[2]) * v_cr[1, 2] +
176+
(1 - (u[1] - 1) / M[1]) * v_lo[2][u[2]] -
177+
(1 - (u[1] - 1) / M[1]) * ((u[2] - 1) / M[2]) * v_cr[2, 1] +
178+
((u[1] - 1) / M[1]) * v_hi[2][u[2]] -
179+
((u[1] - 1) / M[1]) * ((u[2] - 1) / M[2]) * v_cr[2, 2]
164180
end
165181

166182
return interpolated_array
@@ -170,18 +186,23 @@ function transfinite_interpolate_2d!(interpolated_array::OffsetArray,
170186
v_hi::Tuple{OffsetArray,OffsetArray},
171187
v_cr::Union{Nothing,SMatrix{2,2,T} where T<:Real}=nothing)
172188
if typeof(v_cr) <: Nothing # e.g, the following lines still assumes range ``1:2``.
173-
v_cr = SA[(v_lo[1][begin]+v_lo[2][begin])/2 (v_lo[1][ end ]+v_hi[2][begin])/2
174-
(v_hi[1][begin]+v_lo[2][ end ])/2 (v_hi[1][ end ]+v_hi[2][ end ])/2]
175-
end; M = [length(v)-1 for v in v_lo] # this is only for scaling, and never for iterating
189+
v_cr = SA[(v_lo[1][begin] + v_lo[2][begin])/2 (v_lo[1][end] + v_hi[2][begin])/2
190+
(v_hi[1][begin] + v_lo[2][end])/2 (v_hi[1][end] + v_hi[2][end])/2]
191+
end
192+
M = [length(v) - 1 for v in v_lo] # this is only for scaling, and never for iterating
176193

177194
# loop Version
178195
for u in CartesianIndices(interpolated_array) #= #= Deprecated =# Iterators.product(IndexCartesian(), [eachindex(v) for v in v_lo]...) =#
179196
interpolated_array[u] =
180197
#= linear-part from edges bilinear-part from vertices =#
181-
(1-u[2]/M[2])*v_lo[1][u[1]] - (1-u[1]/M[1])*(1-u[2]/M[2])*v_cr[1,1] +
182-
( u[2]/M[2])*v_hi[1][u[1]] - ( u[1]/M[1])*(1-u[2]/M[2])*v_cr[1,2] +
183-
(1-u[1]/M[1])*v_lo[2][u[2]] - (1-u[1]/M[1])*( u[2]/M[2])*v_cr[2,1] +
184-
( u[1]/M[1])*v_hi[2][u[2]] - ( u[1]/M[1])*( u[2]/M[2])*v_cr[2,2]
198+
(1 - u[2] / M[2]) * v_lo[1][u[1]] -
199+
(1 - u[1] / M[1]) * (1 - u[2] / M[2]) * v_cr[1, 1] +
200+
(u[2] / M[2]) * v_hi[1][u[1]] -
201+
(u[1] / M[1]) * (1 - u[2] / M[2]) * v_cr[1, 2] +
202+
(1 - u[1] / M[1]) * v_lo[2][u[2]] -
203+
(1 - u[1] / M[1]) * (u[2] / M[2]) * v_cr[2, 1] +
204+
(u[1] / M[1]) * v_hi[2][u[2]] -
205+
(u[1] / M[1]) * (u[2] / M[2]) * v_cr[2, 2]
185206
end
186207
return interpolated_array
187208
end

Project-1/test/runtests.jl

Lines changed: 40 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ using Test
1616
using BenchmarkTools
1717
using OffsetArrays
1818

19-
2019
@testset "transfinite_interpolate" begin
2120
include(normpath(joinpath(@__DIR__, "../../src/misc-util.jl")))
2221
using .__CFD2021__misc_util__: tuplejoin
@@ -26,57 +25,75 @@ using OffsetArrays
2625
@testset "transfinite_interpolate_2d" begin
2726
Mx, My = 3, 3
2827

29-
3028
@testset "on functions" begin
31-
interp_func = transfinite_interpolate_2d( (x->2x, y->3y), (x->4x+3, y->2+5y) )
32-
@test interp_func((0.5,0.5)) == 3.0
29+
interp_func = transfinite_interpolate_2d((x -> 2x, y -> 3y),
30+
(x -> 4x + 3, y -> 2 + 5y))
31+
@test interp_func((0.5, 0.5)) == 3.0
3332
end
3433

3534
@testset "on arrays" begin
36-
x_lo = ([LinRange(0, 1, Mx)...], [LinRange(0, 0, My)...]); x_hi = ([LinRange(0, 1, Mx)...], [LinRange(1, 1, My)...]);
37-
y_lo = ([LinRange(0, 0, Mx)...], [LinRange(0, 1, My)...]); y_hi = ([LinRange(1, 1, Mx)...], [LinRange(0, 1, My)...]);
38-
in_situ_interp_x = Array{Float64}(undef, (length(v) for v in x_lo)...);
39-
in_situ_interp_y = Array{Float64}(undef, (length(v) for v in y_lo)...);
35+
x_lo = ([LinRange(0, 1, Mx)...], [LinRange(0, 0, My)...])
36+
x_hi = ([LinRange(0, 1, Mx)...], [LinRange(1, 1, My)...])
37+
y_lo = ([LinRange(0, 0, Mx)...], [LinRange(0, 1, My)...])
38+
y_hi = ([LinRange(1, 1, Mx)...], [LinRange(0, 1, My)...])
39+
in_situ_interp_x = Array{Float64}(undef, (length(v) for v in x_lo)...)
40+
in_situ_interp_y = Array{Float64}(undef, (length(v) for v in y_lo)...)
4041
transfinite_interpolate_2d!(in_situ_interp_x, x_lo, x_hi)
4142
transfinite_interpolate_2d!(in_situ_interp_y, y_lo, y_hi)
4243
ab_situ_interp_x = transfinite_interpolate_2d(x_lo, x_hi)
4344
ab_situ_interp_y = transfinite_interpolate_2d(y_lo, y_hi)
4445

4546
@testset "on ordinary arrays" begin
46-
@test in_situ_interp_x == ab_situ_interp_x == [0.0 0.0 0.0; 0.5 0.5 0.5; 1.0 1.0 1.0]
47-
@test in_situ_interp_y == ab_situ_interp_y == [0.0 0.5 1.0; 0.0 0.5 1.0; 0.0 0.5 1.0]
47+
@test in_situ_interp_x ==
48+
ab_situ_interp_x ==
49+
[0.0 0.0 0.0; 0.5 0.5 0.5; 1.0 1.0 1.0]
50+
@test in_situ_interp_y ==
51+
ab_situ_interp_y ==
52+
[0.0 0.5 1.0; 0.0 0.5 1.0; 0.0 0.5 1.0]
4853
end
4954

50-
x_lo = map(x->OffsetArray(x, OffsetArrays.Origin(0)), x_lo)
51-
y_lo = map(x->OffsetArray(x, OffsetArrays.Origin(0)), y_lo)
52-
x_hi = map(x->OffsetArray(x, OffsetArrays.Origin(0)), x_hi)
53-
y_hi = map(x->OffsetArray(x, OffsetArrays.Origin(0)), y_hi)
54-
in_situ_interp_x = OffsetArray(in_situ_interp_x, tuplejoin((axes(v) for v in x_lo)...))
55-
in_situ_interp_y = OffsetArray(in_situ_interp_y, tuplejoin((axes(v) for v in y_lo)...))
55+
x_lo = map(x -> OffsetArray(x, OffsetArrays.Origin(0)), x_lo)
56+
y_lo = map(x -> OffsetArray(x, OffsetArrays.Origin(0)), y_lo)
57+
x_hi = map(x -> OffsetArray(x, OffsetArrays.Origin(0)), x_hi)
58+
y_hi = map(x -> OffsetArray(x, OffsetArrays.Origin(0)), y_hi)
59+
in_situ_interp_x = OffsetArray(in_situ_interp_x,
60+
tuplejoin((axes(v) for v in x_lo)...))
61+
in_situ_interp_y = OffsetArray(in_situ_interp_y,
62+
tuplejoin((axes(v) for v in y_lo)...))
5663
transfinite_interpolate_2d!(in_situ_interp_x, x_lo, x_hi)
5764
transfinite_interpolate_2d!(in_situ_interp_y, y_lo, y_hi)
5865
ab_situ_interp_x = transfinite_interpolate_2d(x_lo, x_hi)
5966
ab_situ_interp_y = transfinite_interpolate_2d(y_lo, y_hi)
6067

6168
@testset "on OffsetArrays" begin
62-
@test in_situ_interp_x == ab_situ_interp_x != [0.0 0.0 0.0; 0.5 0.5 0.5; 1.0 1.0 1.0]
63-
@test in_situ_interp_y == ab_situ_interp_y != [0.0 0.5 1.0; 0.0 0.5 1.0; 0.0 0.5 1.0]
64-
@test in_situ_interp_x == ab_situ_interp_x == OffsetArray([0.0 0.0 0.0; 0.5 0.5 0.5; 1.0 1.0 1.0], OffsetArrays.Origin(0))
65-
@test in_situ_interp_y == ab_situ_interp_y == OffsetArray([0.0 0.5 1.0; 0.0 0.5 1.0; 0.0 0.5 1.0], OffsetArrays.Origin(0))
69+
@test in_situ_interp_x ==
70+
ab_situ_interp_x !=
71+
[0.0 0.0 0.0; 0.5 0.5 0.5; 1.0 1.0 1.0]
72+
@test in_situ_interp_y ==
73+
ab_situ_interp_y !=
74+
[0.0 0.5 1.0; 0.0 0.5 1.0; 0.0 0.5 1.0]
75+
@test in_situ_interp_x ==
76+
ab_situ_interp_x ==
77+
OffsetArray([0.0 0.0 0.0; 0.5 0.5 0.5; 1.0 1.0 1.0],
78+
OffsetArrays.Origin(0))
79+
@test in_situ_interp_y ==
80+
ab_situ_interp_y ==
81+
OffsetArray([0.0 0.5 1.0; 0.0 0.5 1.0; 0.0 0.5 1.0],
82+
OffsetArrays.Origin(0))
6683
end
6784

6885
@testset "exception handling" begin
69-
x_lo = ([LinRange(0, 1, Mx)...], [LinRange(0, 0, My)...]); x_hi = ([LinRange(0, 1, 2Mx+1)...], [LinRange(1, 1, 2My+1)...]);
86+
x_lo = ([LinRange(0, 1, Mx)...], [LinRange(0, 0, My)...])
87+
x_hi = ([LinRange(0, 1, 2Mx + 1)...], [LinRange(1, 1, 2My + 1)...])
7088
@test_throws DimensionMismatch transfinite_interpolate_2d(x_lo, x_hi)
7189
end
72-
7390
end # @testset "on arrays"
7491
end # @testset "transfinite_interpolate_2d"
7592
end # @testset "transfinite_interpolate"
7693

7794
@testset "elliptic_grid_gen" begin
7895
include("../src/elliptic-grid-gen.jl")
79-
import .elliptic_grid_gen
96+
using .elliptic_grid_gen: elliptic_grid_gen
8097

8198
@testset "inverted_poisson_jacobi" begin
8299
@test_skip elliptic_grid_gen.inverted_poisson_jacobi_step

deps/build.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
using Dates
15-
println(now(), "\tEmpty build of the project")
15+
println(now(), "\tEmpty build of the project")

test/runtests.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ include(normpath(joinpath(@__DIR__, "../src/CFD2021Projects.jl")))
2121
@testset "tuplejoin" begin
2222
using .__CFD2021__misc_util__: tuplejoin
2323
@test tuplejoin((1, 2)) == (1, 2)
24-
temp_v = ([0,0.5,1], [0,0.5,1], [0,0.5,1], [0,0.5,1])
24+
temp_v = ([0, 0.5, 1], [0, 0.5, 1], [0, 0.5, 1], [0, 0.5, 1])
2525
temp_t = (axes(v) for v in temp_v)
26-
@test tuplejoin(temp_t...) == (Base.OneTo(3), Base.OneTo(3), Base.OneTo(3), Base.OneTo(3))
26+
@test tuplejoin(temp_t...) ==
27+
(Base.OneTo(3), Base.OneTo(3), Base.OneTo(3), Base.OneTo(3))
2728
end # @testset "tuplejoin"
2829
end # @testset "misc_utils"
2930

0 commit comments

Comments
 (0)