Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove facet workarounds for FerriteGmsh #932

Merged
merged 5 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,9 @@ version = "0.3.14"

[[deps.FerriteGmsh]]
deps = ["Ferrite", "Gmsh"]
git-tree-sha1 = "702427f9f6b2d3e39da3bfab4eea7d02f459e404"
git-tree-sha1 = "0b4c93ea344bdbf5788758a6f214fdc1c3176f2f"
uuid = "4f95f4f8-b27c-4ae5-9a39-ea55e634e36b"
version = "1.0.1"
version = "1.1.1"

[[deps.FerriteMeshParser]]
deps = ["Ferrite"]
Expand Down
14 changes: 0 additions & 14 deletions docs/src/literate-tutorials/computational_homogenization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -194,20 +194,6 @@ using Test #src

using FerriteGmsh

# Overload for specific elements in this tutorial.
function FerriteGmsh.tofacesets(boundarydict::Dict{String,Vector}, elements::Vector{Triangle})
faces = Ferrite.facets.(elements)
facesets = Dict{String,Set{FaceIndex}}()
for (boundaryname, boundaryfaces) in boundarydict
facesettuple = Set{FaceIndex}()
for boundaryface in boundaryfaces
FerriteGmsh._add_to_facesettuple!(facesettuple, boundaryface, faces)
end
facesets[boundaryname] = facesettuple
end
return facesets
end

#src notebook: use coarse mesh to decrease build time
#src script: use the fine mesh
#src markdown: use the coarse mesh to decrease build time, but make it look like the fine
Expand Down
14 changes: 0 additions & 14 deletions docs/src/literate-tutorials/stokes-flow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -146,20 +146,6 @@
using Ferrite, FerriteGmsh, Gmsh, Tensors, LinearAlgebra, SparseArrays
using Test #src

# Overload for specific elements in this tutorial.
function FerriteGmsh.tofacesets(boundarydict::Dict{String,Vector}, elements::Vector{Triangle})
faces = Ferrite.facets.(elements)
facesets = Dict{String,Set{FaceIndex}}()
for (boundaryname, boundaryfaces) in boundarydict
facesettuple = Set{FaceIndex}()
for boundaryface in boundaryfaces
FerriteGmsh._add_to_facesettuple!(facesettuple, boundaryface, faces)
end
facesets[boundaryname] = facesettuple
end
return facesets
end

# ### Geometry and mesh generation with `Gmsh.jl`
#
# In the `setup_grid` function below we use the
Expand Down
Loading