Hi, I'm trying to get fipy working on a Windows 7 machine. I used Python(x,y) 2.7.5.1 to get a base system setup, used the gmsh binaries, built LAPACK with mingw and built pysparse against it.
Everything seems to be fine, even most examples run, but when running "fipy.test()" I get the following errors: ====================================================================== FAIL: _test (fipy.meshes.gmshMesh.GmshGrid2D) Doctest: fipy.meshes.gmshMesh.GmshGrid2D._test ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python27\lib\doctest.py", line 2201, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for fipy.meshes.gmshMesh.GmshGrid2D._test File "C:\Python27\lib\site-packages\fipy\meshes\gmshMesh.py", line 2198, in _test ---------------------------------------------------------------------- File "C:\Python27\lib\site-packages\fipy\meshes\gmshMesh.py", line 2209, in fipy.meshes.gmshMesh.GmshGrid2D._test Failed example: numerix.allclose(yogmsh._faceAreas, yogrid._faceAreas) # doctest: +GMSH Expected: True Got: False ---------------------------------------------------------------------- File "C:\Python27\lib\site-packages\fipy\meshes\gmshMesh.py", line 2212, in fipy.meshes.gmshMesh.GmshGrid2D._test Failed example: yogmsh.cellCenters.value.size == yogrid.cellCenters.value.size # doctest: +GMSH Expected: True Got: False ---------------------------------------------------------------------- File "C:\Python27\lib\site-packages\fipy\meshes\gmshMesh.py", line 2217, in fipy.meshes.gmshMesh.GmshGrid2D._test Failed example: mesh.numberOfCells == 4 # doctest: +GMSH Expected: True Got: False ---------------------------------------------------------------------- File "C:\Python27\lib\site-packages\fipy\meshes\gmshMesh.py", line 2220, in fipy.meshes.gmshMesh.GmshGrid2D._test Failed example: len(mesh.faceCenters[0]) == 12 # doctest: +GMSH Expected: True Got: False ====================================================================== FAIL: _test (fipy.meshes.gmshMesh.GmshGrid3D) Doctest: fipy.meshes.gmshMesh.GmshGrid3D._test ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python27\lib\doctest.py", line 2201, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for fipy.meshes.gmshMesh.GmshGrid3D._test File "C:\Python27\lib\site-packages\fipy\meshes\gmshMesh.py", line 2276, in _test ---------------------------------------------------------------------- File "C:\Python27\lib\site-packages\fipy\meshes\gmshMesh.py", line 2290, in fipy.meshes.gmshMesh.GmshGrid3D._test Failed example: yogmsh.cellCenters.value.size == yogrid.cellCenters.value.size # doctest: +GMSH Expected: True Got: False ---------------------------------------------------------------------- File "C:\Python27\lib\site-packages\fipy\meshes\gmshMesh.py", line 2293, in fipy.meshes.gmshMesh.GmshGrid3D._test Failed example: numerix.allclose(yogmsh._faceAreas, yogrid._faceAreas) # doctest: +GMSH Expected: True Got: False ---------------------------------------------------------------------- File "C:\Python27\lib\site-packages\fipy\meshes\gmshMesh.py", line 2296, in fipy.meshes.gmshMesh.GmshGrid3D._test Failed example: numerix.allclose(yogmsh._faceAreas, yogrid._faceAreas) # doctest: +GMSH Expected: True Got: False ---------------------------------------------------------------------- File "C:\Python27\lib\site-packages\fipy\meshes\gmshMesh.py", line 2305, in fipy.meshes.gmshMesh.GmshGrid3D._test Failed example: len(mesh.cellCenters.value[0]) == 8 # doctest: +GMSH Expected: True Got: False ---------------------------------------------------------------------- File "C:\Python27\lib\site-packages\fipy\meshes\gmshMesh.py", line 2312, in fipy.meshes.gmshMesh.GmshGrid3D._test Failed example: nx.allclose(mesh._faceAreas, faceAreas) # doctest: +GMSH Expected: True Got: False ---------------------------------------------------------------------- File "C:\Python27\lib\site-packages\fipy\meshes\gmshMesh.py", line 2322, in fipy.meshes.gmshMesh.GmshGrid3D._test Failed example: nx.allclose(mesh._cellAreas, cellAreafipy version 3.1 numpy version 1.7.1 pysparse version 1.1.1 scipy version 0.12.0 matplotlib version 1.2.1 gist is not installed mpi4py is not installed mpi4py is not installed mayavi version 4.3.0 gmsh version 2.8.3 s) # doctest: +GMSH Expected: True Got: False **** Also running tests in "examples/levelSet" yields the following error: FAIL: TrenchMesh (electroChem.trenchMesh) Doctest: electroChem.trenchMesh.TrenchMesh ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python27\lib\doctest.py", line 2201, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for electroChem.trenchMesh.TrenchMesh File "c:\Python27\Lib\site-packages\fipy\examples\levelSet\electroChem\trenchMesh.py", line 44, in TrenchMesh ---------------------------------------------------------------------- File "c:\Python27\Lib\site-packages\fipy\examples\levelSet\electroChem\trenchMesh.py", line 63, in electroChem.trenchMesh.TrenchMesh Failed example: print mesh.globalNumberOfCells - len(numerix.nonzero(mesh.electrolyteMask)[0]) # doctest: +GMSH, +SERIAL Expected: 150 Got: 160 I've tried other versions of gmsh, numpy and scipy (I've even tried python 2.6), but these two errors always persist. I can't figure out what the problem seems to be, or even what the exact source might be, so any suggestions would be very much appreciated. Thanks in advance.
_______________________________________________ fipy mailing list [email protected] http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]
