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

gmsh.model.mesh.generate crashes! #26

Open
khorrami1 opened this issue Jan 19, 2023 · 5 comments
Open

gmsh.model.mesh.generate crashes! #26

khorrami1 opened this issue Jan 19, 2023 · 5 comments

Comments

@khorrami1
Copy link

Hello,

I run the first example in Julia1.8.5 but I get this message and it quits from Julia REPL.

julia> using Gmsh: Gmsh, gmsh

julia>

julia> Gmsh.initialize()
true

julia>

julia> gmsh.model.add("t1")

julia>

julia> lc = 1e-2
0.01

julia> gmsh.model.geo.addPoint(0, 0, 0, lc, 1)
1

julia> gmsh.model.geo.addPoint(.1, 0,  0, lc, 2)
2

julia> gmsh.model.geo.addPoint(.1, .3, 0, lc, 3)
3

julia>

julia> p4 = gmsh.model.geo.addPoint(0, .3, 0, lc)
4

julia>

julia> gmsh.model.geo.addLine(1, 2, 1)
1

julia> gmsh.model.geo.addLine(3, 2, 2)
2

julia> gmsh.model.geo.addLine(3, p4, 3)
3

julia> gmsh.model.geo.addLine(4, 1, p4)
4

julia>

julia> gmsh.model.geo.addCurveLoop([4, 1, -2, 3], 1)
1

julia> gmsh.model.geo.addPlaneSurface([1], 1)
1

julia>

julia> gmsh.model.geo.synchronize()

julia>

julia> gmsh.model.addPhysicalGroup(0, [1, 2], 1)
1

julia> gmsh.model.addPhysicalGroup(1, [1, 2], 2)
2

julia> gmsh.model.addPhysicalGroup(2, [1], 6)
6

julia>

julia> gmsh.model.setPhysicalName(2, 6, "My surface")

julia>

julia> gmsh.model.mesh.generate(2)
Info    : Meshing 1D...
Info    : [  0%] Meshing curve 1 (Line)
Info    : [ 30%] Meshing curve 2 (Line)
Info    : [ 50%] Meshing curve 3 (Line)
Info    : [ 80%] Meshing curve 4 (Line)
PS C:\Users\m.khorrami>
@graphitical
Copy link

graphitical commented Feb 15, 2023

Same issue here.
Julia 1.8.5

I also get the issue on 1.9.0-beta3

@fredrikekre
Copy link
Collaborator

Probably the same as JuliaLang/julia#48573

@khorrami1
Copy link
Author

I can resolve this issue by manually adding gmsh.jl file and the library files to the current folder.
gmsh.jl.

Do you have any idea how we can fix it?

@graphitical
Copy link

That does look like the same issue. Looks like a temp solution if we need it now is to roll back the Julia version we're working with...or in my case last night just roll all the way back to a different language and do it in python 🐍

@avigliotti
Copy link

I have a similar problem but I can't solve it by manually including gmsh.jl

I am enclosing the results of the package's test

Gmsh.jl.out.txt

this is the error

Info    : Done meshing 1D (Wall 0.0142475s, CPU 0.014247s)
Info    : Meshing 2D...
Info    : [  0%] Meshing surface 10 (Sphere, Frontal-Delaunay for Quads)
Error   : Full-quad recombination not ready yet for periodic surfaces
terminate called after throwing an instance of 'std::runtime_error'
  what():  Full-quad recombination not ready yet for periodic surfaces

signal (6): Aborted

I am not sure this is the same issue as here or should I open another one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants