From 84af81975b307b8803d1fd4ef5adf81d04fa4a6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Fuhrmann?= Date: Fri, 27 Sep 2024 19:49:43 +0200 Subject: [PATCH] Don't set gmsh.model - Seems to be disallowed now by https://github.com/JuliaLang/julia/pull/54678 - Seems to be not necessary as calls before already did this via the gmsh API --- ext/ExtendableGridsGmshExt.jl | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/ext/ExtendableGridsGmshExt.jl b/ext/ExtendableGridsGmshExt.jl index babc4d52..950febaa 100644 --- a/ext/ExtendableGridsGmshExt.jl +++ b/ext/ExtendableGridsGmshExt.jl @@ -172,14 +172,7 @@ This function initalizes and finalized gmsh. function simplexgrid_to_gmshfile(grid::ExtendableGrid; filename::String = "") gmsh.initialize() - if VERSION >= v"1.9" - # This possibility is new in 1.9, see - # https://github.com/JuliaLang/julia/blob/release-1.9/NEWS.md#new-language-features - gmsh.model = simplexgrid_to_mod(grid) - mod = gmsh.model - else - mod = simplexgrid_to_mod(grid) - end + mod = simplexgrid_to_mod(grid) if filename != "" gmsh.write(filename) @@ -200,14 +193,8 @@ This function initializes and finalized gmsh. """ function mixedgrid_to_gmshfile(grid::ExtendableGrid; filename::String = "") gmsh.initialize() - if VERSION >= v"1.9" - # This possibility is new in 1.9, see - # https://github.com/JuliaLang/julia/blob/release-1.9/NEWS.md#new-language-features - gmsh.model = mixedgrid_to_mod(grid) - mod = gmsh.model - else - mod = mixedgrid_to_mod(grid) - end + + mod = mixedgrid_to_mod(grid) if filename != "" gmsh.write(filename)