Hi fellow gmsh users,<br><br>I've recently tried to install Gmsh in conjunction with Fipy (python-based pde solver). However, I've been having trouble getting the Gmsh-based Fipy codes to work and, after much toying about with bash profile and so forth, I seemed to have made the problem worse. Installation wise, I've tried two approaches: <br>
<br>1. Through the Mac OS X binary <a href="http://geuz.org/gmsh/bin/MacOSX/gmsh-2.5.0-MacOSX.dmg" target="_blank">http://geuz.org/gmsh/bin/MacOSX/gmsh-2.5.0-MacOSX.dmg</a><br>2. Following the steps in <a href="https://geuz.org/trac/gmsh/wiki/InstallingGmshDg">https://geuz.org/trac/gmsh/wiki/InstallingGmshDg</a><br>
<br>For the latter, I initially had incomplete GMSH paths and error messages upon configuration. After subsequent tweaking, now when I 'ccmake ..' (step 7), all I get is an empty cache.<br><br>When reinstalled with .dmg, this is what I get when running the python script containing gmsh import (attached):<br>
<br>Traceback (most recent call last):<br> File "circle.py", line 209, in <module><br> exec(fipy.tests.doctestPlus._getScript())<br> File "<string>", line 35, in <module><br> File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/FiPy-2.2_dev5124-py2.7.egg/fipy/meshes/gmshImport.py", line 2214, in __init__<br>
Gmsh2D.__init__(self, arg, coordDimensions=coordDimensions)<br> File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/FiPy-2.2_dev5124-py2.7.egg/fipy/meshes/gmshImport.py", line 1509, in __init__<br>
background=background)<br> File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/FiPy-2.2_dev5124-py2.7.egg/fipy/meshes/gmshImport.py", line 142, in openMSHFile<br> raise EnvironmentError("Gmsh version must be >= 2.0.")<br>
EnvironmentError: Gmsh version must be >= 2.0.<br><br clear="all">This is strange since my Gmsh version is certainly 2.5.0.<br><br>A few other oddities occurred over the course of my learning curve. For instance, when I call 'gmsh t1.geo' at the terminal from the /Volume directory, only a blank "untitled.geo" window shows up. Only if I double-click on the file via Finder will the proper display be shown. <br>
<br>Many preemptive thanks for all the help!<br><br>Cheers,<br><br>-- <br>Yun Tao<br><br>Graduate Group of Ecology Doctoral Candidate<br>Department of Environmental Science and Policy<br>Center for Population Biology<br>University of California, Davis<br>
<br><br>