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

Problem with fipy and gmsh #221

Closed
fipymigrate opened this issue Sep 19, 2014 · 3 comments
Closed

Problem with fipy and gmsh #221

fipymigrate opened this issue Sep 19, 2014 · 3 comments
Milestone

Comments

@fipymigrate
Copy link

running the circle example from diffusion I get the following error:

Traceback (most recent call last):                                                                     
  File "circle.py", line 209, in <module>                                                              
exec(fipy.tests.doctestPlus._getScript())                                                          
  File "<string>", line 35, in <module>                                                                
  File "/usr/lib/python2.7/site-packages/fipy/meshes/numMesh/gmshImport.py", line 437, in __init__     
mesh2D.Mesh2D.__init__(self, **_DataGetter(mshfile.getFilename(), dimensions=2, coordDimensions=coordDimensions).getData())                                                                               
  File "/usr/lib/python2.7/site-packages/fipy/meshes/numMesh/mesh.py", line 68, in __init__            
_CommonMesh.__init__(self)                                                                         
  File "/usr/lib/python2.7/site-packages/fipy/meshes/common/mesh.py", line 63, in __init__             
self._calcGeometry()                                                                               
  File "/usr/lib/python2.7/site-packages/fipy/meshes/numMesh/mesh.py", line 458, in _calcGeometry      
_CommonMesh._calcGeometry(self)                                                                    
  File "/usr/lib/python2.7/site-packages/fipy/meshes/common/mesh.py", line 596, in _calcGeometry       
self._calcFaceNormals()                                                                            
  File "/usr/lib/python2.7/site-packages/fipy/meshes/numMesh/mesh2D.py", line 77, in _calcFaceNormals  
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.cellDistanceVectors) < 0)                
  File "/usr/lib/python2.7/site-packages/fipy/tools/numerix.py", line 841, in dot                      
return a2.dot(a1)                                                                                  
ValueError: objects are not aligned 

Archlinux, Python 2.7, Fipy 2.1.1, Gmsh 2.5.0

Imported from trac ticket #317, created by clemens@m-info.de on 12-10-2010 at 10:30, last modified: 05-03-2011 at 17:19

@fipymigrate fipymigrate added this to the 3.0 milestone Sep 19, 2014
@guyer
Copy link
Member

guyer commented Sep 19, 2014

We will try to diagnose. What version of numpy are you running?

Trac comment by guyer on 12-10-2010 at 11:45

@fipymigrate
Copy link
Author

print numpy.version
1.5.1

Trac comment by clemens@m-info.de on 12-10-2010 at 11:57

@wd15
Copy link
Contributor

wd15 commented Sep 19, 2014

Works for me on Ubuntu with

  • python 2.7.1
  • fipy 2.1.1 tarball
  • gmsh 2.5.0
  • numpy 1.5.1

Do you still have the issue? I'm closing this ticket, but will reopen if you respond. Cheers

Trac comment by wd15 on 05-03-2011 at 17:19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants