[Gmsh] Gmsh crash.
Christophe Geuzaine
cgeuzaine at ulg.ac.be
Sat Jun 20 19:42:38 CEST 2009
Billy Araujo wrote:
>
> Hi,
>
>
> Gmsh crashes when trying to mesh the following file.
>
> Note: I know the geometry is badly defined.
>
indeed :-)
>
> ch_length = 0.2;
>
> p1 = newp; Point(p1) = {0, 0, 0, ch_length} ;
> p2 = newp; Point(p2) = {2, 0, 0, ch_length} ;
> p3 = newp; Point(p3) = {2, 2, 0, ch_length} ;
> p4 = newp; Point(p4) = {0, 2, 0, ch_length} ;
> p5 = newp; Point(p5) = {0.5, 2, 0, ch_length*0.1} ;
> p6 = newp; Point(p6) = {1, 1.6, 0, ch_length*0.2} ;
> p7 = newp; Point(p7) = {1.2, 2.6, 0, ch_length*0.2} ;
>
> l1 = newl; Line(l1) = {p1, p2} ;
> l2 = newl; Line(l2) = {p2, p3} ;
> l3 = newl; Line(l3) = {p3, p4} ;
> l4 = newl; Line(l4) = {p4, p1} ;
> l5 = newl; Line(l5) = {p6, p7} ;
>
> ll1 = newll; Line Loop (ll1) = {l1, l2, l3, l4} ;
> s1 = news; Plane Surface (s1) = {ll1} ;
>
Here's the culprit (embedding the point on the boundary):
> Point{p5} In Surface{s1} ;
We'll try to report an error instead of crashing...
> Line{l5} In Surface{s1} ;
> Recombine Surface {7};
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
--
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine