[Gmsh] gmsh bug...

Abraham, Rohan (TRANS Contr - Gannon) rohan.abraham at Trans.ge.com
Wed Jul 16 15:39:12 CEST 2003


I am a student at the pennsylvania state university, and have been using gmsh to solve an electromagnetic problem involving materials.
There is a batch of about 400 input geometry files to process, therefore i tried to automate the process of mesh creation, with a *.bat
file. When I try to mesh a file from the command line, the following message appears:

Command line: ./gmsh ../geometry_files/test50.geo -2
Loading '.../geometry_files/test50.geo'
Loaded '.../geometry_files/test50.geo'
Mesh 1D...
Meshing Curve 1
Meshing Curve 2
Meshing Curve 3
Meshing Curve 4
Meshing Curve 5
Meshing Curve 6
Meshing Curve 7
Meshing Curve 8
Error : GSL: function not continuous (/home/burgers/pkg/cygwin/build/gsl-1.3/min/fsolver.c, line 40)
Fatal Error: Segmentation violation (invalid memory reference)
	:--------------------------------------------------------
	:You have discovered a bug in Gmsh! You may report it
	:by e-mail (together with any helpful data permitting to
	:reproduce it) to <gmsh at guez.org>

Here is what puzzles me. If i use the graphical user interface to manually load and mesh this file, it works fine. 

I would appreciate it very much if you could look into this bug. I am attaching all other relevant information at the end of this mail.
Thankyou,

Rohan

Problem: meshing 2D geometry
Operating system: windows 2000 professional
Terminal : rxvt
Version of gmsh: 1.45.1
PC: dell P3

test50.geo
Mesh.Algorithm = 2;
Mesh.Smoothing = 4;
Mesh.ElementOrder = 2;
Point(1)={0.000000,0.000000,0.000000,0.033333};
Point(2)={1.000000,0.000000,0.000000,0.033333};
Point(3)={1.000000,1.000000,0.000000,0.033333};
Point(4)={0.000000,1.000000,0.000000,0.033333};
Line(1)={1,2};	Physical Line(1)={1};
Line(2)={2,3};	Physical Line(2)={2};
Line(3)={3,4};	Physical Line(3)={3};
Line(4)={4,1};	Physical Line(4)={4};
Line Loop(5)={4,1,2,3};
Point(5)={0.352000,0.402838,0.000000,0.009341};
Point(6)={0.408419,0.515676,0.000000,0.009341};
Point(7)={0.464838,0.402838,0.000000,0.009341};
Point(8)={0.408419,0.290000,0.000000,0.009341};
Point(9)={0.408419,0.402838,0.000000,0.009341};
Point(10)={0.408419,0.459257,0.000000,0.009341};
Ellipse(6)={5,9,10,6};
Attractor Line{6}={0.100000,0.100000,0.007052};
Ellipse(7)={6,9,10,7};
Attractor Line{7}={0.100000,0.100000,0.007052};
Ellipse(8)={7,9,10,8};
Attractor Line{8}={0.100000,0.100000,0.007052};
Ellipse(9)={8,9,10,5};
Attractor Line{9}={0.100000,0.100000,0.007052};
Line Loop(10)={6,7,8,9};
Point(11)={0.232000,0.617838,0.000000,0.009341};
Point(12)={0.288419,0.730676,0.000000,0.009341};
Point(13)={0.344838,0.617838,0.000000,0.009341};
Point(14)={0.288419,0.505000,0.000000,0.009341};
Point(15)={0.288419,0.617838,0.000000,0.009341};
Point(16)={0.288419,0.674257,0.000000,0.009341};
Ellipse(11)={11,15,16,12};
Attractor Line{11}={0.100000,0.100000,0.007052};
Ellipse(12)={12,15,16,13};
Attractor Line{12}={0.100000,0.100000,0.007052};
Ellipse(13)={13,15,16,14};
Attractor Line{13}={0.100000,0.100000,0.007052};
Ellipse(14)={14,15,16,11};
Attractor Line{14}={0.100000,0.100000,0.007052};
Line Loop(15)={11,12,13,14};
Point(17)={0.080000,0.866419,0.000000,0.009341};
Point(18)={0.192838,0.922838,0.000000,0.009341};
Point(19)={0.305676,0.866419,0.000000,0.009341};
Point(20)={0.192838,0.810000,0.000000,0.009341};
Point(21)={0.192838,0.866419,0.000000,0.009341};
Point(22)={0.136419,0.866419,0.000000,0.009341};
Ellipse(16)={17,21,22,18};
Attractor Line{16}={0.100000,0.100000,0.007052};
Ellipse(17)={18,21,22,19};
Attractor Line{17}={0.100000,0.100000,0.007052};
Ellipse(18)={19,21,22,20};
Attractor Line{18}={0.100000,0.100000,0.007052};
Ellipse(19)={20,21,22,17};
Attractor Line{19}={0.100000,0.100000,0.007052};
Line Loop(20)={16,17,18,19};
Point(23)={0.408000,0.674838,0.000000,0.009341};
Point(24)={0.464419,0.787676,0.000000,0.009341};
Point(25)={0.520838,0.674838,0.000000,0.009341};
Point(26)={0.464419,0.562000,0.000000,0.009341};
Point(27)={0.464419,0.674838,0.000000,0.009341};
Point(28)={0.464419,0.731257,0.000000,0.009341};
Ellipse(21)={23,27,28,24};
Attractor Line{21}={0.100000,0.100000,0.007052};
Ellipse(22)={24,27,28,25};
Attractor Line{22}={0.100000,0.100000,0.007052};
Ellipse(23)={25,27,28,26};
Attractor Line{23}={0.100000,0.100000,0.007052};
Ellipse(24)={26,27,28,23};
Attractor Line{24}={0.100000,0.100000,0.007052};
Line Loop(25)={21,22,23,24};
Point(29)={0.207000,0.058419,0.000000,0.009341};
Point(30)={0.319838,0.114838,0.000000,0.009341};
Point(31)={0.432676,0.058419,0.000000,0.009341};
Point(32)={0.319838,0.002000,0.000000,0.009341};
Point(33)={0.319838,0.058419,0.000000,0.009341};
Point(34)={0.263419,0.058419,0.000000,0.009341};
Ellipse(26)={29,33,34,30};
Attractor Line{26}={0.100000,0.100000,0.007052};
Ellipse(27)={30,33,34,31};
Attractor Line{27}={0.100000,0.100000,0.007052};
Ellipse(28)={31,33,34,32};
Attractor Line{28}={0.100000,0.100000,0.007052};
Ellipse(29)={32,33,34,29};
Attractor Line{29}={0.100000,0.100000,0.007052};
Line Loop(30)={26,27,28,29};
Point(35)={0.556000,0.187838,0.000000,0.009341};
Point(36)={0.612419,0.300676,0.000000,0.009341};
Point(37)={0.668838,0.187838,0.000000,0.009341};
Point(38)={0.612419,0.075000,0.000000,0.009341};
Point(39)={0.612419,0.187838,0.000000,0.009341};
Point(40)={0.612419,0.244257,0.000000,0.009341};
Ellipse(31)={35,39,40,36};
Attractor Line{31}={0.100000,0.100000,0.007052};
Ellipse(32)={36,39,40,37};
Attractor Line{32}={0.100000,0.100000,0.007052};
Ellipse(33)={37,39,40,38};
Attractor Line{33}={0.100000,0.100000,0.007052};
Ellipse(34)={38,39,40,35};
Attractor Line{34}={0.100000,0.100000,0.007052};
Line Loop(35)={31,32,33,34};
Point(41)={0.084000,0.204838,0.000000,0.009341};
Point(42)={0.140419,0.317676,0.000000,0.009341};
Point(43)={0.196838,0.204838,0.000000,0.009341};
Point(44)={0.140419,0.092000,0.000000,0.009341};
Point(45)={0.140419,0.204838,0.000000,0.009341};
Point(46)={0.140419,0.261257,0.000000,0.009341};
Ellipse(36)={41,45,46,42};
Attractor Line{36}={0.100000,0.100000,0.007052};
Ellipse(37)={42,45,46,43};
Attractor Line{37}={0.100000,0.100000,0.007052};
Ellipse(38)={43,45,46,44};
Attractor Line{38}={0.100000,0.100000,0.007052};
Ellipse(39)={44,45,46,41};
Attractor Line{39}={0.100000,0.100000,0.007052};
Line Loop(40)={36,37,38,39};
Point(47)={0.862000,0.703838,0.000000,0.009341};
Point(48)={0.918419,0.816676,0.000000,0.009341};
Point(49)={0.974838,0.703838,0.000000,0.009341};
Point(50)={0.918419,0.591000,0.000000,0.009341};
Point(51)={0.918419,0.703838,0.000000,0.009341};
Point(52)={0.918419,0.760257,0.000000,0.009341};
Ellipse(41)={47,51,52,48};
Attractor Line{41}={0.100000,0.100000,0.007052};
Ellipse(42)={48,51,52,49};
Attractor Line{42}={0.100000,0.100000,0.007052};
Ellipse(43)={49,51,52,50};
Attractor Line{43}={0.100000,0.100000,0.007052};
Ellipse(44)={50,51,52,47};
Attractor Line{44}={0.100000,0.100000,0.007052};
Line Loop(45)={41,42,43,44};
Point(53)={0.727000,0.122838,0.000000,0.009341};
Point(54)={0.783419,0.235676,0.000000,0.009341};
Point(55)={0.839838,0.122838,0.000000,0.009341};
Point(56)={0.783419,0.010000,0.000000,0.009341};
Point(57)={0.783419,0.122838,0.000000,0.009341};
Point(58)={0.783419,0.179257,0.000000,0.009341};
Ellipse(46)={53,57,58,54};
Attractor Line{46}={0.100000,0.100000,0.007052};
Ellipse(47)={54,57,58,55};
Attractor Line{47}={0.100000,0.100000,0.007052};
Ellipse(48)={55,57,58,56};
Attractor Line{48}={0.100000,0.100000,0.007052};
Ellipse(49)={56,57,58,53};
Attractor Line{49}={0.100000,0.100000,0.007052};
Line Loop(50)={46,47,48,49};
Point(59)={0.272000,0.194419,0.000000,0.009341};
Point(60)={0.384838,0.250838,0.000000,0.009341};
Point(61)={0.497676,0.194419,0.000000,0.009341};
Point(62)={0.384838,0.138000,0.000000,0.009341};
Point(63)={0.384838,0.194419,0.000000,0.009341};
Point(64)={0.328419,0.194419,0.000000,0.009341};
Ellipse(51)={59,63,64,60};
Attractor Line{51}={0.100000,0.100000,0.007052};
Ellipse(52)={60,63,64,61};
Attractor Line{52}={0.100000,0.100000,0.007052};
Ellipse(53)={61,63,64,62};
Attractor Line{53}={0.100000,0.100000,0.007052};
Ellipse(54)={62,63,64,59};
Attractor Line{54}={0.100000,0.100000,0.007052};
Line Loop(55)={51,52,53,54};
Plane Surface(1)={5,10,15,20,25,30,35,40,45,50,55};
Plane Surface(2)={10};
Plane Surface(3)={15};
Plane Surface(4)={20};
Plane Surface(5)={25};
Plane Surface(6)={30};
Plane Surface(7)={35};
Plane Surface(8)={40};
Plane Surface(9)={45};
Plane Surface(10)={50};
Plane Surface(11)={55};
Physical Surface(5)={1};
Physical Surface(6)={2,3,4,5,6,7,8,9,10,11};