Skip to content

Commit

Permalink
Merge pull request #156 from marinlauber/move-examples
Browse files Browse the repository at this point in the history
move examples to WaterLily-Examples
  • Loading branch information
weymouth authored Aug 2, 2024
2 parents d59d5de + 84a66d2 commit 771d263
Show file tree
Hide file tree
Showing 30 changed files with 85 additions and 3,368 deletions.
275 changes: 80 additions & 195 deletions README.md

Large diffs are not rendered by default.

File renamed without changes
Binary file added assets/forces.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added assets/u0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/vort.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Documenter, WaterLily

## find all image files in examples/ dir and copy in docs/src/examples/
## find all image files in assets/ dir and copy in docs/src/assets/

recursive_find(directory, pattern) =
mapreduce(vcat, walkdir(directory)) do (root, dirs, files)
Expand All @@ -10,11 +10,12 @@ recursive_find(directory, pattern) =
image_files = []

for pattern in [r"\.gif", r"\.jpg", r"\.png"]
global image_files = vcat(image_files, recursive_find(joinpath(@__DIR__, "../examples"), pattern))
global image_files = vcat(image_files, recursive_find(joinpath(@__DIR__, "../assets/"), pattern))
end

@show image_files
@show joinpath(@__DIR__, "src/assets/"*basename.(image_files[1]))
for file in image_files
cp(file, joinpath(@__DIR__, "src/examples/"*basename.(file)), force=true)
cp(file, joinpath(@__DIR__, "src/assets/"*basename.(file)), force=true)
end


Expand Down
File renamed without changes.
Binary file removed examples/JuliaCon2021.jpg
Binary file not shown.
16 changes: 0 additions & 16 deletions examples/Project.toml

This file was deleted.

50 changes: 0 additions & 50 deletions examples/TandemFoilOptim.jl

This file was deleted.

34 changes: 0 additions & 34 deletions examples/ThreeD_Plots.jl

This file was deleted.

31 changes: 0 additions & 31 deletions examples/ThreeD_TaylorGreenVortex.jl

This file was deleted.

41 changes: 0 additions & 41 deletions examples/ThreeD_cylinder_vtk_restart.jl

This file was deleted.

35 changes: 0 additions & 35 deletions examples/ThreeD_donut.jl

This file was deleted.

77 changes: 0 additions & 77 deletions examples/ThreeD_jelly.jl

This file was deleted.

41 changes: 0 additions & 41 deletions examples/TwoD_Julia.jl

This file was deleted.

12 changes: 0 additions & 12 deletions examples/TwoD_SlowStartCircle.jl

This file was deleted.

Loading

0 comments on commit 771d263

Please sign in to comment.