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 call errors #494

Closed
KDra opened this issue Jun 1, 2016 · 3 comments
Closed

Gmsh call errors #494

KDra opened this issue Jun 1, 2016 · 3 comments

Comments

@KDra
Copy link

KDra commented Jun 1, 2016

When running the http://www.ctcms.nist.gov/fipy/examples/diffusion/generated/examples.diffusion.circle.html tutorial i get the following error and output:

"
Traceback (most recent call last):

File "", line 1, in
runfile('/home/user/test/fipy/rotCyl.py', wdir='/home/user/test/fipy')

File "/home/user/anaconda3/envs/fipy/lib/python2.7/site-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 714, in runfile
execfile(filename, namespace)

File "/home/user/anaconda3/envs/fipy/lib/python2.7/site-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 81, in execfile
builtins.execfile(filename, *where)

File "/home/user/test/fipy/rotCyl.py", line 30, in
CylMesh = Gmsh2D('cylinder.geo', communicator=serialComm)

File "/home/user/anaconda3/envs/fipy/lib/python2.7/site-packages/FiPy-3.1.dev137_g92a21a0-py2.7.egg/fipy/meshes/gmshMesh.py", line 1579, in init
self._orderedCellVertexIDs_data) = self.mshFile.read()

File "/home/user/anaconda3/envs/fipy/lib/python2.7/site-packages/FiPy-3.1.dev137_g92a21a0-py2.7.egg/fipy/meshes/gmshMesh.py", line 803, in read
raise GmshException(errStr)

GmshException: Gmsh hasn't produced any cells! Check your Gmsh code.

Gmsh output:
Info : Running 'gmsh cylinder.geo -2 -nopopup -format msh -o /tmp/tmpo_wp2_.msh' [Gmsh 2.8.3, 1 node, max. 8 threads]
Info : Started on Wed Jun 1 17:33:45 2016
Info : Reading 'cylinder.geo'...
Info : Done reading 'cylinder.geo'
Info : Meshing 1D...
Info : Meshing curve 1 (Line)
Info : Meshing curve 2 (Line)
Info : Meshing curve 3 (Line)
Info : Meshing curve 4 (Circle)
Info : Meshing curve 5 (Circle)
Info : Meshing curve 6 (Circle)
Info : Meshing curve 7 (Circle)
Info : Meshing curve 8 (Circle)
Info : Meshing curve 9 (Circle)
Info : Done meshing 1D (0 s)
Info : Meshing 2D...
Info : Meshing surface 11 (transfinite)
Info : Meshing surface 13 (transfinite)
Info : Meshing surface 15 (transfinite)
Info : Done meshing 2D (0.00717998 s)
Info : 2926 vertices 3121 elements
Info : Writing '/tmp/tmpo_wp2_.msh'...
Info : Done writing '/tmp/tmpo_wp2_.msh'
Info : Stopped on Wed Jun 1 17:33:45 2016
"

@wd15
Copy link
Contributor

wd15 commented Jun 3, 2016

@KDra, do you know which version of gmsh that you're using? I'm using,

$ /home/wd15/anaconda/bin/gmsh --version
2.11.0

which seems to work.

@KDra
Copy link
Author

KDra commented Jun 3, 2016

i went through a few versions. i think it was the latest one. i did something (i don't know what) though and it started working.

@wd15
Copy link
Contributor

wd15 commented Jun 6, 2016

Closing this as the author has resolved the issue.

@wd15 wd15 closed this as completed Jun 6, 2016
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

2 participants