Skip to content

Commit 84af819

Browse files
committed
Don't set gmsh.model
- Seems to be disallowed now by JuliaLang/julia#54678 - Seems to be not necessary as calls before already did this via the gmsh API
1 parent 41c41df commit 84af819

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

ext/ExtendableGridsGmshExt.jl

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,7 @@ This function initalizes and finalized gmsh.
172172
function simplexgrid_to_gmshfile(grid::ExtendableGrid; filename::String = "")
173173
gmsh.initialize()
174174

175-
if VERSION >= v"1.9"
176-
# This possibility is new in 1.9, see
177-
# https://github.com/JuliaLang/julia/blob/release-1.9/NEWS.md#new-language-features
178-
gmsh.model = simplexgrid_to_mod(grid)
179-
mod = gmsh.model
180-
else
181-
mod = simplexgrid_to_mod(grid)
182-
end
175+
mod = simplexgrid_to_mod(grid)
183176

184177
if filename != ""
185178
gmsh.write(filename)
@@ -200,14 +193,8 @@ This function initializes and finalized gmsh.
200193
"""
201194
function mixedgrid_to_gmshfile(grid::ExtendableGrid; filename::String = "")
202195
gmsh.initialize()
203-
if VERSION >= v"1.9"
204-
# This possibility is new in 1.9, see
205-
# https://github.com/JuliaLang/julia/blob/release-1.9/NEWS.md#new-language-features
206-
gmsh.model = mixedgrid_to_mod(grid)
207-
mod = gmsh.model
208-
else
209-
mod = mixedgrid_to_mod(grid)
210-
end
196+
197+
mod = mixedgrid_to_mod(grid)
211198

212199
if filename != ""
213200
gmsh.write(filename)

0 commit comments

Comments
 (0)