From 106e6b4be29253012f914ec5c41ba7273e89bcef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Fuhrmann?= Date: Sat, 7 Dec 2024 14:08:37 +0100 Subject: [PATCH] some formatting updates --- examples/examples1d.jl | 4 ++-- examples/examples2d.jl | 6 +++--- examples/examples3d.jl | 6 +++--- examples/gmsh.jl | 4 ++-- examples/vtk_write.jl | 6 +++--- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/examples/examples1d.jl b/examples/examples1d.jl index 7c4709a5..e95694d4 100644 --- a/examples/examples1d.jl +++ b/examples/examples1d.jl @@ -53,7 +53,7 @@ function runtests() @test numbers_match(interval_localref(), 27, 26, 2) @test numbers_match(interval_multiregion(), 21, 20, 3) @test numbers_match(interval_subgrid(), 51, 50, 2) - nothing + return nothing end # Plot generation @@ -67,5 +67,5 @@ function generateplots(picdir; Plotter = nothing) Plotter.save(joinpath(picdir, "interval_multiregion.png"), gridplot(interval_multiregion(); Plotter, size, legend)) Plotter.save(joinpath(picdir, "interval_subgrid.png"), gridplot(interval_subgrid(); Plotter, size, legend)) end - nothing + return nothing end diff --git a/examples/examples2d.jl b/examples/examples2d.jl index 97dcc549..71cb4bda 100644 --- a/examples/examples2d.jl +++ b/examples/examples2d.jl @@ -34,7 +34,7 @@ function rectangle_multiregion() bfacemask!(grid, [0.0, 0.0], [0.0, 0.5], 5) bfacemask!(grid, [1.0, 0.0], [1.0, 0.5], 6) bfacemask!(grid, [0.0, 0.5], [1.0, 0.5], 7) -grid + return grid end # ![](rectangle_multiregion.png) @@ -108,7 +108,7 @@ function runtests() @test numbers_match(g, 187, 306, 66) @test numbers_match(sg, 17, 16, 0) @test issorted(view(sg[Coordinates], 1, :)) -nothing + return nothing end # Plot generation @@ -130,5 +130,5 @@ function generateplots(picdir; Plotter = nothing) fname = joinpath(picdir, "sorted_subgrid.png") Plotter.save(fname, reveal(p)) end - nothing + return nothing end diff --git a/examples/examples3d.jl b/examples/examples3d.jl index 3e28b2ac..220660b3 100644 --- a/examples/examples3d.jl +++ b/examples/examples3d.jl @@ -47,16 +47,16 @@ function runtests() @test numbers_match(quadrilateral(), 330, 1200, 440) @test mask_bedges() @test numbers_match(cross3d(), 189, 480, 344) -nothing + return nothing end # Plot generation using GridVisualize function generateplots(picdir; Plotter = nothing) - if isdefined(Plotter, :Makie) + if isdefined(Plotter, :Makie) size = (400, 400) Plotter.save(joinpath(picdir, "quadrilateral.png"), gridplot(quadrilateral(); Plotter, size)) Plotter.save(joinpath(picdir, "cross3d.png"), gridplot(cross3d(); Plotter, size)) end -nothing + return nothing end diff --git a/examples/gmsh.jl b/examples/gmsh.jl index 96c5b14c..85585315 100644 --- a/examples/gmsh.jl +++ b/examples/gmsh.jl @@ -314,7 +314,7 @@ function runtests() @test ok(gmsh_t1()) @test ok(gmsh_t4()) @test ok(gmsh_t5()) -nothing + return nothing end # Plot generation @@ -326,5 +326,5 @@ function generateplots(picdir; Plotter = nothing) Plotter.save(joinpath(picdir, "gmsh_t4.png"), gridplot(gmsh_t4(); Plotter, size)) Plotter.save(joinpath(picdir, "gmsh_t5.png"), gridplot(gmsh_t5(); Plotter, size)) end -nothing + return nothing end diff --git a/examples/vtk_write.jl b/examples/vtk_write.jl index 3ee038f7..863d48c0 100644 --- a/examples/vtk_write.jl +++ b/examples/vtk_write.jl @@ -16,7 +16,7 @@ function grid3D_test(filename::String) cell_data = cell_data, field_data = field_data ) -nothing + return nothing end @@ -35,7 +35,7 @@ function grid2D_test(filename::String) cell_data = cell_data, field_data = field_data ) -nothing + return nothing end function grid1D_test(filename::String) @@ -53,5 +53,5 @@ function grid1D_test(filename::String) cell_data = cell_data, field_data = field_data ) -nothing + return nothing end