Skip to content

Commit fbe430f

Browse files
committed
+ Format
modified: test/Meshes/interval.jl
1 parent 4b528fa commit fbe430f

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

test/Meshes/interval.jl

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,11 @@ end
239239
)
240240
# test the mesh coordinates are eqv to dz_bottom
241241
@test Meshes.coordinates(mesh, 1, 1) == Geometry.ZPoint(0.0)
242-
@test isapprox(Meshes.coordinates(mesh, 1, 2), Geometry.ZPoint(0.02 / 45.0), rtol=1e-3)
242+
@test isapprox(
243+
Meshes.coordinates(mesh, 1, 2),
244+
Geometry.ZPoint(0.02 / 45.0),
245+
rtol = 1e-3,
246+
)
243247

244248
# test the face element distance at the top of the domain is dz_top
245249
fₑ₋₁ = Geometry.component(Meshes.coordinates(mesh, 45, 1), 1)
@@ -280,7 +284,11 @@ end
280284
# test the mesh coordinates are eqv to dz_bottom
281285
@test Meshes.coordinates(mesh, 1, 1) == Geometry.ZPoint(-1.0)
282286
# test the face element distance at the top of the domain is dz_top
283-
@test isapprox(Meshes.coordinates(mesh, 1, nelems), Geometry.ZPoint(-Geometry.ZPoint(0.02 / 45.0).z), rtol = 1e-3)
287+
@test isapprox(
288+
Meshes.coordinates(mesh, 1, nelems),
289+
Geometry.ZPoint(-Geometry.ZPoint(0.02 / 45.0).z),
290+
rtol = 1e-3,
291+
)
284292
fₑ₋₁ = Geometry.component(Meshes.coordinates(mesh, nelems, 1), 1)
285293
fₑ = Geometry.component(Meshes.coordinates(mesh, nelems, 2), 1)
286294
# a residual tol of ~1e-1 or 1e-2 is fine for typical use cases
@@ -307,7 +315,11 @@ end
307315
@test Meshes.coordinates(mesh, 1, 1) == Geometry.ZPoint(0.0)
308316
@test Meshes.coordinates(mesh, 1, nelems + 1) Geometry.ZPoint(1.0)
309317
# test the interval of the mesh coordinates at the surface is the same as dz_surface
310-
@test isapprox(Meshes.coordinates(mesh, 1, 2), Geometry.ZPoint(0.03 / 75.0), rtol = 1e-3)
318+
@test isapprox(
319+
Meshes.coordinates(mesh, 1, 2),
320+
Geometry.ZPoint(0.03 / 75.0),
321+
rtol = 1e-3,
322+
)
311323
end
312324

313325
@testset "IntervalMesh HyperbolicTangentStretching reverse" begin
@@ -333,7 +345,11 @@ end
333345
@test Meshes.coordinates(mesh, 1, 1) == Geometry.ZPoint(-1.0)
334346
@test Meshes.coordinates(mesh, 1, nelems + 1) Geometry.ZPoint(0.0)
335347
# test the interval of the mesh coordinates at the surface is the same as dz_surface
336-
@test isapprox(Meshes.coordinates(mesh, 1, nelems), Geometry.ZPoint(-0.03 / 75.0), rtol=1e-3)
348+
@test isapprox(
349+
Meshes.coordinates(mesh, 1, nelems),
350+
Geometry.ZPoint(-0.03 / 75.0),
351+
rtol = 1e-3,
352+
)
337353
end
338354

339355
@testset "Truncated IntervalMesh" begin

0 commit comments

Comments
 (0)