<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Moritz, I ran this using 2.9.1 on OS X (yosemite) and it worked fine.  Maybe try updating your gmsh version?
<div class=""><br class="">
</div>
<div class="">Regards,</div>
<div class="">Dave</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Apr 28, 2015, at 1:36 AM, moritz braun <<a href="mailto:moritz.braun@gmail.com" class="">moritz.braun@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class="">Dear All<br class="">
<br class="">
</div>
The following file<br class="">
===============<br class="">
<br class="">
Function Mysphere;<br class="">
<br class="">
  // In the following commands we use the reserved variable name<br class="">
  // `newp', which automatically selects a new point number. This<br class="">
  // number is chosen as the highest current point number, plus<br class="">
  // one. (Note that, analogously to `newp', the variables `newc',<br class="">
  // `news', `newv' and `newreg' select the highest number amongst<br class="">
  // currently defined curves, surfaces, volumes and `any entities<br class="">
  // other than points', respectively.)<br class="">
<br class="">
  p1 = newp; Point(p1) = {x,  y,  z} ;<br class="">
  p2 = newp; Point(p2) = {x+r,y,  z} ;<br class="">
  p3 = newp; Point(p3) = {x,  y+r,z} ;<br class="">
  p4 = newp; Point(p4) = {x,  y,  z+r} ;<br class="">
  p5 = newp; Point(p5) = {x-r,y,  z  } ;<br class="">
  p6 = newp; Point(p6) = {x,  y-r,z  } ;<br class="">
  p7 = newp; Point(p7) = {x,  y,  z-r} ;<br class="">
<br class="">
  c1 = newreg; Circle(c1) = {p2,p1,p7};<br class="">
  c2 = newreg; Circle(c2) = {p7,p1,p5};<br class="">
  c3 = newreg; Circle(c3) = {p5,p1,p4};<br class="">
  c4 = newreg; Circle(c4) = {p4,p1,p2};<br class="">
  c5 = newreg; Circle(c5) = {p2,p1,p3};<br class="">
  c6 = newreg; Circle(c6) = {p3,p1,p5};<br class="">
  c7 = newreg; Circle(c7) = {p5,p1,p6};<br class="">
  c8 = newreg; Circle(c8) = {p6,p1,p2};<br class="">
  c9 = newreg; Circle(c9) = {p7,p1,p3};<br class="">
  c10 = newreg; Circle(c10) = {p3,p1,p4};<br class="">
  c11 = newreg; Circle(c11) = {p4,p1,p6};<br class="">
  c12 = newreg; Circle(c12) = {p6,p1,p7};<br class="">
<br class="">
  // We need non-plane surfaces to define the spherical holes. Here we<br class="">
  // use ruled surfaces, which can have 3 or 4 sides:<br class="">
<br class="">
  l1 = newreg; Line Loop(l1) = {c5,c10,c4};   Ruled Surface(newreg) = {l1};<br class="">
  l2 = newreg; Line Loop(l2) = {c9,-c5,c1};   Ruled Surface(newreg) = {l2};<br class="">
  l3 = newreg; Line Loop(l3) = {c12,-c8,-c1}; Ruled Surface(newreg) = {l3};<br class="">
  l4 = newreg; Line Loop(l4) = {c8,-c4,c11};  Ruled Surface(newreg) = {l4};<br class="">
  l5 = newreg; Line Loop(l5) = {-c10,c6,c3};  Ruled Surface(newreg) = {l5};<br class="">
  l6 = newreg; Line Loop(l6) = {-c11,-c3,c7}; Ruled Surface(newreg) = {l6};<br class="">
  l7 = newreg; Line Loop(l7) = {-c2,-c7,-c12};Ruled Surface(newreg) = {l7};<br class="">
  l8 = newreg; Line Loop(l8) = {-c6,-c9,c2};  Ruled Surface(newreg) = {l8};<br class="">
  theloops[t] = newreg;<br class="">
  Surface Loop(theloops[t]) = {l8+1,l5+1,l1+1,l2+1,l3+1,l7+1,l6+1,l4+1};<br class="">
  <br class="">
Return<br class="">
<br class="">
Field[1]=MathEval;<br class="">
Field[1].F="0.1/(1/Sqrt(x*x+y*y+(z-1)*(z-1))+1/Sqrt(x*x+y*y+(z+1)*(z+1)))";<br class="">
Background Field = 1;<br class="">
x = 0.0 ; y = 0.0 ; z = 0 ; r = 10  ;t=0; <br class="">
Call Mysphere ;<br class="">
x = 0 ; y = 0.0 ; z = 1 ; r = 0.5;t=1; <br class="">
Call Mysphere ;<br class="">
x = 0 ; y = 0.0 ; z = -1 ; r = 0.5 ;t=2; <br class="">
Call Mysphere ;<br class="">
<br class="">
Volume (186)={theloops[]};<br class="">
Physical Volume(999)= 186;<br class="">
==========<br class="">
<br class="">
</div>
loads successfully into gmsh <br class="">
</div>
but trying to mesh produces a <br class="">
</div>
seg. fault<br class="">
</div>
the version is 2.8.3<br class="">
<br class="">
<br class="">
</div>
<div class="">any help will be appreciated<br class="">
</div>
<div class=""><br class="">
</div>
regards<br class="">
<br class="">
<br class="">
</div>
Moritz <br clear="all" class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class=""><br class="">
-- <br class="">
<div class="gmail_signature">Prof M Braun         Tel.:27-12-4298006/8027<br class="">
Physics Department  Fax.: 27-12-4293643<br class="">
University of South Africa (UNISA)      <br class="">
<a href="mailto:moritz.braun@gmail.com" target="_blank" class="">moritz.braun@gmail.com</a><br class="">
P.O. Box 392     <br class="">
0003 <br class="">
UNISA<br class="">
 South Africa <br class="">
<a href="http://moritz-braun.blogspot.com/" target="_blank" class="">http://moritz-braun.blogspot.com</a><br class="">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
This e-mail is covered by the Electronic Communication Privacy Act, 18 U.S.C. Section 2510-2521 and may be legally privileged. If you have received this transmission in error, please notify the original sender immediately by return e-mail or by telephone at
 the telephone number provided above and delete/trash the original message from your system. Thank you for your assistance. The information contained herein is confidential information provided only for the use of the individual or entity for whom it was intended.
 If the reader of this message received it in error, is not the intended recipient, or if an attachment is made in error, the reader is hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.
</div>
_______________________________________________<br class="">
gmsh mailing list<br class="">
<a href="mailto:gmsh@geuz.org" class="">gmsh@geuz.org</a><br class="">
http://www.geuz.org/mailman/listinfo/gmsh<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
This e-mail is covered by the Electronic Communication Privacy Act, 18 U.S.C. Section 2510-2521 and may be legally privileged. If you have received this transmission in error, please notify the original sender immediately by return e-mail or by telephone at
 the telephone number provided above and delete/trash the original message from your system. Thank you for your assistance. The information contained herein is confidential information provided only for the use of the individual or entity for whom it was intended.
 If the reader of this message received it in error, is not the intended recipient, or if an attachment is made in error, the reader is hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.
</body>
</html>