Skip to content

Commit

Permalink
Merge pull request #122 from GalerkinToolkit/examples
Browse files Browse the repository at this point in the history
Examples
  • Loading branch information
fverdugo authored Oct 30, 2024
2 parents 0bacbee + 50e43da commit cb11c83
Show file tree
Hide file tree
Showing 17 changed files with 6,482 additions and 10 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,20 @@ jobs:
with:
version: '1'
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-docdeploy@v1
- name: Prepare environment for xvfb
run: |
sudo apt-get update
sudo apt-get install -y xorg-dev mesa-utils xvfb libgl1 freeglut3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev
- name: Install dependencies
run: |
DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --project=docs -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()
Pkg.add("GLMakie")'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
julia --project=docs -e '
using Documenter: DocMeta, doctest
using GalerkinToolkit
DocMeta.setdocmeta!(GalerkinToolkit, :DocTestSetup, :(using GalerkinToolkit); recursive=true)
doctest(GalerkinToolkit)'
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
run: |
DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --project=docs -e 'include("docs/make.jl")'
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
*.pvtu
*.vtu
/output
/Manifest.toml
*Manifest.toml
/docs/build/
/docs/src/examples/*.md
.vscode
GalerkinToolkitExamples_output/
GalerkinToolkitExamples/Manifest.toml
Expand Down
4 changes: 4 additions & 0 deletions GalerkinToolkitExamples/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]

[compat]
PartitionedSolvers = "0.2"

9 changes: 9 additions & 0 deletions assets/mesh1.geo
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
SetFactory("OpenCASCADE");
Box(1) = {0, 0, 0, 1, 1, 1};
Cylinder(2) = {0, 0.5, 0.5, 1, 0, 0, 0.4, 2*Pi};
Cylinder(3) = {0.5, 0.0, 0.5, 0, 1, 0, 0.4, 2*Pi};
BooleanUnion{ Volume{3}; Delete; }{ Volume{2}; Delete; }
BooleanDifference{ Volume{1}; Delete; }{ Volume{2}; Delete; }
Physical Surface("top") = {14};
Physical Surface("bottom") = {15};
Physical Volume("volume") = {1};
Loading

0 comments on commit cb11c83

Please sign in to comment.