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

FiPy self-test fails #405

Closed
fipymigrate opened this issue Sep 19, 2014 · 1 comment
Closed

FiPy self-test fails #405

fipymigrate opened this issue Sep 19, 2014 · 1 comment

Comments

@fipymigrate
Copy link

I'm running the latest version of FiPy under Enthought Canopy version 1.0.3 (64-bit). When I run the script test.py (in
AppData\Local\Enthought\Canopy\User\Lib\site-packages\fipy\meshes), I get a long list of errors (see below). Any idea why this is happening?

AppData\Local\Enthought\Canopy\User\Lib\site-packages\fipy\meshes>python test.py

..................FFFFFFFFFF'gmsh' is not recognized as an internal or external command,
operable program or batch file.
'gmsh' is not recognized as an internal or external command,
operable program or batch file.
FFFF.F........FFFFFF......
==================================================================h4. 
FAIL: _calcNumPts (fipy.meshes.numMesh.mesh.Mesh)
Doctest: fipy.meshes.numMesh.mesh.Mesh._calcNumPts
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 2201, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for fipy.meshes.numMesh.mesh.Mesh._calcNumPts
  File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 390, in _calcNumPts

----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 402, in fipy.meshes.numM
esh.mesh.Mesh._calcNumPts
Failed example:
PeriodicGrid1D(nx=2, dx=numerix.float32(1.))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._calcNumPts[1]>", line 1, in <module>
PeriodicGrid1D(nx=2, dx=numerix.float32(1.))
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\periodicGrid1D.py", line 87, in _
_init__
Grid1D.__init__(self, dx = dx, nx = nx)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid1D.py", line 92, in __init__
Mesh1D.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 600, in _calcGeomet
ry
self._calcFaceCellToCellNormals()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 521, in _calcFaceC
ellToCellNormals
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.faceCellToCellNormals) < 0)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 835, in dot
return a1.dot(a2)
ValueError: matrices are not aligned


==============================================================h4. 
FAIL: _connectFaces (fipy.meshes.numMesh.mesh.Mesh)
Doctest: fipy.meshes.numMesh.mesh.Mesh._connectFaces
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 2201, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for fipy.meshes.numMesh.mesh.Mesh._connectFaces
  File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 92, in _connectFaces

----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 104, in fipy.meshes.numM
esh.mesh.Mesh._connectFaces
Failed example:
mesh = Grid2D(nx = 2, ny = 2, dx = 1., dy = 1.)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._connectFaces[1]>", line 1, in <module>
mesh = Grid2D(nx = 2, ny = 2, dx = 1., dy = 1.)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 111, in __init__

Mesh2D.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 596, in _calcGeomet
ry
self._calcFaceNormals()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 77, in _calcFace
Normals
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.cellDistanceVectors) < 0)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 841, in dot
return a2.dot(a1)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 107, in fipy.meshes.numM
esh.mesh.Mesh._connectFaces
Failed example:
print parallel.procID != 0 or (mesh._getCellFaceIDs() h2. [[0, 1, 2, 3],
[7, 8, 10, 11],
[2, 3, 4, 5],
[6, 7, 9, 10]]).flatten().all()
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._connectFaces[3]>", line 1, in <module>
print parallel.procID != 0 or (mesh._getCellFaceIDs() [[0, 1, 2, 3],
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 113, in fipy.meshes.numM
esh.mesh.Mesh._connectFaces
Failed example:
mesh._connectFaces(numerix.nonzero(mesh.getFacesLeft()), numerix.nonzero(mesh.getFacesRight()))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._connectFaces[4]>", line 1, in <module>
mesh._connectFaces(numerix.nonzero(mesh.getFacesLeft()), numerix.nonzero(mesh.getFacesRight()))
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 115, in fipy.meshes.numM
esh.mesh.Mesh._connectFaces
Failed example:
print parallel.procID != 0 or (mesh._getCellFaceIDs() h2. [[0, 1, 2, 3],
[7, 6, 10, 9],
[2, 3, 4, 5],
[6, 7, 9, 10]]).flatten().all()
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._connectFaces[5]>", line 1, in <module>
print parallel.procID != 0 or (mesh._getCellFaceIDs() [[0, 1, 2, 3],
NameError: name 'mesh' is not defined


==============================================================h4. 
FAIL: _test (fipy.meshes.numMesh.mesh.Mesh)
Doctest: fipy.meshes.numMesh.mesh.Mesh._test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 2201, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for fipy.meshes.numMesh.mesh.Mesh._test
  File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 704, in _test

----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 728, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
mesh = Mesh(vertexCoords=vertices, faceVertexIDs=faces, cellFaceIDs=cells)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[7]>", line 1, in <module>
mesh = Mesh(vertexCoords=vertices, faceVertexIDs=faces, cellFaceIDs=cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 592, in _calcGeomet
ry
self._calcFaceAreas()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 475, in _calcFaceA
reas
self.faceAreas = numerix.sqrtDot(cross, cross) / 2.
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 857, in sqrtDot
return inline._optionalInline(_sqrtDotIn, _sqrtDotPy, a1, a2)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\inline.py", line 18, in _optionalInline
return pythonFn(*args)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 861, in _sqrtDotPy
return sqrt(dot(a1, a2))
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 835, in dot
return a1.dot(a2)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 731, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
print numerix.allequal(externalFaces,
numerix.nonzero(mesh.getExteriorFaces()))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[9]>", line 2, in <module>
numerix.nonzero(mesh.getExteriorFaces()))
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 736, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
print numerix.allequal(internalFaces,
numerix.nonzero(mesh.getInteriorFaces()))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[11]>", line 2, in <module>
numerix.nonzero(mesh.getInteriorFaces()))
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 743, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
numerix.allequal(faceCellIds, mesh.getFaceCellIDs())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[14]>", line 1, in <module>
numerix.allequal(faceCellIds, mesh.getFaceCellIDs())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 751, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
numerix.allclose(faceAreas, mesh._getFaceAreas(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[19]>", line 1, in <module>
numerix.allclose(faceAreas, mesh._getFaceAreas(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 758, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
numerix.allclose(faceCenters, mesh.getFaceCenters(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[24]>", line 1, in <module>
numerix.allclose(faceCenters, mesh.getFaceCenters(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 764, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
numerix.allclose(faceNormals, mesh._getFaceNormals(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[26]>", line 1, in <module>
numerix.allclose(faceNormals, mesh._getFaceNormals(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 773, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
numerix.allequal(cellToFaceOrientations, mesh._getCellFaceOrientations())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[28]>", line 1, in <module>
numerix.allequal(cellToFaceOrientations, mesh._getCellFaceOrientations())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 777, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
numerix.allclose(cellVolumes, mesh.getCellVolumes(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[30]>", line 1, in <module>
numerix.allclose(cellVolumes, mesh.getCellVolumes(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 783, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
print numerix.allclose(cellCenters, mesh.getCellCenters(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[32]>", line 1, in <module>
print numerix.allclose(cellCenters, mesh.getCellCenters(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 792, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
print numerix.allclose(faceToCellDistances, mesh._getFaceToCellDistances(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[38]>", line 1, in <module>
print numerix.allclose(faceToCellDistances, mesh._getFaceToCellDistances(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 800, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
numerix.allclose(cellDistances, mesh._getCellDistances(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[40]>", line 1, in <module>
numerix.allclose(cellDistances, mesh._getCellDistances(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 804, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
numerix.allclose(faceToCellDistanceRatios, mesh._getFaceToCellDistanceRatio(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[42]>", line 1, in <module>
numerix.allclose(faceToCellDistanceRatios, mesh._getFaceToCellDistanceRatio(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 808, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
numerix.allclose(areaProjections, mesh._getAreaProjections(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[44]>", line 1, in <module>
numerix.allclose(areaProjections, mesh._getAreaProjections(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 813, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
tangents1 = tmp / numerix.sqrtDot(tmp, tmp)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[47]>", line 1, in <module>
tangents1 = tmp / numerix.sqrtDot(tmp, tmp)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 857, in sqrtDot
return inline._optionalInline(_sqrtDotIn, _sqrtDotPy, a1, a2)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\inline.py", line 18, in _optionalInline
return pythonFn(*args)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 861, in _sqrtDotPy
return sqrt(dot(a1, a2))
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 835, in dot
return a1.dot(a2)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 814, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
numerix.allclose(tangents1, mesh._getFaceTangents1(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[48]>", line 1, in <module>
numerix.allclose(tangents1, mesh._getFaceTangents1(), atol = 1e-10, rtol = 1e-10)
NameError: name 'tangents1' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 817, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
tmp = numerix.cross(tangents1, faceNormals, axis=0)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[49]>", line 1, in <module>
tmp = numerix.cross(tangents1, faceNormals, axis=0)
NameError: name 'tangents1' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 818, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
tangents2 = tmp / numerix.sqrtDot(tmp, tmp)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[50]>", line 1, in <module>
tangents2 = tmp / numerix.sqrtDot(tmp, tmp)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 857, in sqrtDot
return inline._optionalInline(_sqrtDotIn, _sqrtDotPy, a1, a2)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\inline.py", line 18, in _optionalInline
return pythonFn(*args)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 861, in _sqrtDotPy
return sqrt(dot(a1, a2))
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 835, in dot
return a1.dot(a2)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 819, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
numerix.allclose(tangents2, mesh._getFaceTangents2(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[51]>", line 1, in <module>
numerix.allclose(tangents2, mesh._getFaceTangents2(), atol = 1e-10, rtol = 1e-10)
NameError: name 'tangents2' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 828, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
numerix.allequal(cellToCellIDs, mesh._getCellToCellIDs())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[53]>", line 1, in <module>
numerix.allequal(cellToCellIDs, mesh._getCellToCellIDs())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 837, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
numerix.allclose(cellToCellDistances, mesh._getCellToCellDistances(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[55]>", line 1, in <module>
numerix.allclose(cellToCellDistances, mesh._getCellToCellDistances(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 841, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
numerix.allequal(interiorCellIDs, mesh._getInteriorCellIDs())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[57]>", line 1, in <module>
numerix.allequal(interiorCellIDs, mesh._getInteriorCellIDs())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 845, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
numerix.allequal(exteriorCellIDs, mesh._getExteriorCellIDs())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[59]>", line 1, in <module>
numerix.allequal(exteriorCellIDs, mesh._getExteriorCellIDs())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 866, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
numerix.allclose(cellNormals, mesh._getCellNormals(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[61]>", line 1, in <module>
numerix.allclose(cellNormals, mesh._getCellNormals(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 887, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
numerix.allclose(cellAreaProjections, mesh._getCellAreaProjections(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[63]>", line 1, in <module>
numerix.allclose(cellAreaProjections, mesh._getCellAreaProjections(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 899, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
numerix.allclose(cellVertexIDs, mesh._getCellVertexIDs())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[66]>", line 1, in <module>
numerix.allclose(cellVertexIDs, mesh._getCellVertexIDs())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 904, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
(f, filename) = dump.write(mesh, extension = '.gz')
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[68]>", line 1, in <module>
(f, filename) = dump.write(mesh, extension = '.gz')
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 905, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
unpickledMesh = dump.read(filename, f)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[69]>", line 1, in <module>
unpickledMesh = dump.read(filename, f)
NameError: name 'filename' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 907, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
print numerix.allequal(mesh.getCellCenters(), unpickledMesh.getCellCenters())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[70]>", line 1, in <module>
print numerix.allequal(mesh.getCellCenters(), unpickledMesh.getCellCenters())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 917, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
triMesh = Tri2D(dx, dy, nx, 1) + [[dx*nx], [0]]
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[78]>", line 1, in <module>
triMesh = Tri2D(dx, dy, nx, 1) + [[dx*nx], [0]]
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 91, in __init__
Mesh2D.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 596, in _calcGeomet
ry
self._calcFaceNormals()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 77, in _calcFace
Normals
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.cellDistanceVectors) < 0)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 841, in dot
return a2.dot(a1)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 918, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
bigMesh = gridMesh + triMesh
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[79]>", line 1, in <module>
bigMesh = gridMesh + triMesh
NameError: name 'triMesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 919, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
x, y = bigMesh.getCellCenters()
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[80]>", line 1, in <module>
x, y = bigMesh.getCellCenters()
NameError: name 'bigMesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 921, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
volumes = CellVariable(mesh=bigMesh, value=1.)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[82]>", line 1, in <module>
volumes = CellVariable(mesh=bigMesh, value=1.)
NameError: name 'bigMesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 922, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
volumes[x > dx * nx] = 0.25
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[83]>", line 1, in <module>
volumes[x > dx * nx] = 0.25
NameError: name 'volumes' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 923, in fipy.meshes.numM
esh.mesh.Mesh._test
Failed example:
print numerix.allclose(bigMesh.getCellVolumes(), volumes)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh.Mesh._test[84]>", line 1, in <module>
print numerix.allclose(bigMesh.getCellVolumes(), volumes)
NameError: name 'bigMesh' is not defined


==============================================================h4. 
FAIL: _test (fipy.meshes.numMesh.mesh2D.Mesh2D)
Doctest: fipy.meshes.numMesh.mesh2D.Mesh2D._test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 2201, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for fipy.meshes.numMesh.mesh2D.Mesh2D._test
  File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 237, in _test

----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 263, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
mesh = Mesh2D(vertexCoords = vertices, faceVertexIDs = faces, cellFaceIDs = cells)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[8]>", line 1, in <module>
mesh = Mesh2D(vertexCoords = vertices, faceVertexIDs = faces, cellFaceIDs = cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 596, in _calcGeomet
ry
self._calcFaceNormals()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 77, in _calcFace
Normals
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.cellDistanceVectors) < 0)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 841, in dot
return a2.dot(a1)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 266, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
print numerix.allequal(externalFaces,
numerix.nonzero(mesh.getExteriorFaces()))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[10]>", line 2, in <module>
numerix.nonzero(mesh.getExteriorFaces()))
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 271, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
print numerix.allequal(internalFaces,
numerix.nonzero(mesh.getInteriorFaces()))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[12]>", line 2, in <module>
numerix.nonzero(mesh.getInteriorFaces()))
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 279, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
numerix.allequal(faceCellIds, mesh.getFaceCellIDs())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[14]>", line 1, in <module>
numerix.allequal(faceCellIds, mesh.getFaceCellIDs())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 285, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
numerix.allclose(faceAreas, mesh._getFaceAreas(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[16]>", line 1, in <module>
numerix.allclose(faceAreas, mesh._getFaceAreas(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 290, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
numerix.allclose(faceCenters, mesh.getFaceCenters(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[19]>", line 1, in <module>
numerix.allclose(faceCenters, mesh.getFaceCenters(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 303, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
numerix.allclose(faceNormals, mesh._getFaceNormals(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[21]>", line 1, in <module>
numerix.allclose(faceNormals, mesh._getFaceNormals(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 310, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
numerix.allequal(cellToFaceOrientations, mesh._getCellFaceOrientations())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[23]>", line 1, in <module>
numerix.allequal(cellToFaceOrientations, mesh._getCellFaceOrientations())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 314, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
numerix.allclose(cellVolumes, mesh.getCellVolumes(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[25]>", line 1, in <module>
numerix.allclose(cellVolumes, mesh.getCellVolumes(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 319, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
print numerix.allclose(cellCenters, mesh.getCellCenters(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[27]>", line 1, in <module>
print numerix.allclose(cellCenters, mesh.getCellCenters(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 338, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
numerix.allclose(faceToCellDistances, mesh._getFaceToCellDistances(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[29]>", line 1, in <module>
numerix.allclose(faceToCellDistances, mesh._getFaceToCellDistances(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 351, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
numerix.allclose(cellDistances, mesh._getCellDistances(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[31]>", line 1, in <module>
numerix.allclose(cellDistances, mesh._getCellDistances(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 355, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
numerix.allclose(faceToCellDistanceRatios, mesh._getFaceToCellDistanceRatio(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[33]>", line 1, in <module>
numerix.allclose(faceToCellDistanceRatios, mesh._getFaceToCellDistanceRatio(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 359, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
numerix.allclose(areaProjections, mesh._getAreaProjections(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[35]>", line 1, in <module>
numerix.allclose(areaProjections, mesh._getAreaProjections(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 372, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
numerix.allclose(tangents1, mesh._getFaceTangents1(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[37]>", line 1, in <module>
numerix.allclose(tangents1, mesh._getFaceTangents1(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 379, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
numerix.allclose(tangents2, mesh._getFaceTangents2(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[39]>", line 1, in <module>
numerix.allclose(tangents2, mesh._getFaceTangents2(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 386, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
numerix.allequal(cellToCellIDs, mesh._getCellToCellIDs())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[41]>", line 1, in <module>
numerix.allequal(cellToCellIDs, mesh._getCellToCellIDs())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 395, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
numerix.allclose(cellToCellDistances, mesh._getCellToCellDistances(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[45]>", line 1, in <module>
numerix.allclose(cellToCellDistances, mesh._getCellToCellDistances(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 399, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
numerix.allequal(interiorCellIDs, mesh._getInteriorCellIDs())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[47]>", line 1, in <module>
numerix.allequal(interiorCellIDs, mesh._getInteriorCellIDs())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 403, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
numerix.allequal(exteriorCellIDs, mesh._getExteriorCellIDs())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[49]>", line 1, in <module>
numerix.allequal(exteriorCellIDs, mesh._getExteriorCellIDs())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 416, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
numerix.allclose(cellNormals, mesh._getCellNormals(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[53]>", line 1, in <module>
numerix.allclose(cellNormals, mesh._getCellNormals(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 428, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
numerix.allclose(cellAreaProjections, mesh._getCellAreaProjections(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[56]>", line 1, in <module>
numerix.allclose(cellAreaProjections, mesh._getCellAreaProjections(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 436, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
numerix.allclose(mesh._getCellVertexIDs(), cellVertexIDs)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[58]>", line 1, in <module>
numerix.allclose(mesh._getCellVertexIDs(), cellVertexIDs)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 441, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
(f, filename) = dump.write(mesh, extension = '.gz')
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[60]>", line 1, in <module>
(f, filename) = dump.write(mesh, extension = '.gz')
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 442, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
unpickledMesh = dump.read(filename, f)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[61]>", line 1, in <module>
unpickledMesh = dump.read(filename, f)
NameError: name 'filename' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 444, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D._test
Failed example:
print numerix.allequal(mesh.getCellCenters(), unpickledMesh.getCellCenters())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D._test[62]>", line 1, in <module>
print numerix.allequal(mesh.getCellCenters(), unpickledMesh.getCellCenters())
NameError: name 'mesh' is not defined


==============================================================h4. 
FAIL: extrude (fipy.meshes.numMesh.mesh2D.Mesh2D)
Doctest: fipy.meshes.numMesh.mesh2D.Mesh2D.extrude
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 2201, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for fipy.meshes.numMesh.mesh2D.Mesh2D.extrude
  File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 137, in extrude

----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 147, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D.extrude
Failed example:
print Grid2D(nx=2,ny=2).extrude(layers=2).getCellCenters()
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D.extrude[1]>", line 1, in <module>
print Grid2D(nx=2,ny=2).extrude(layers=2).getCellCenters()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 162, in extrude
return self._extrude(self, extrudeFunc, layers)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 231, in _extrude

return Mesh(vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 592, in _calcGeomet
ry
self._calcFaceAreas()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 475, in _calcFaceA
reas
self.faceAreas = numerix.sqrtDot(cross, cross) / 2.
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 857, in sqrtDot
return inline._optionalInline(_sqrtDotIn, _sqrtDotPy, a1, a2)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\inline.py", line 18, in _optionalInline
return pythonFn(*args)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 861, in _sqrtDotPy
return sqrt(dot(a1, a2))
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 835, in dot
return a1.dot(a2)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 153, in fipy.meshes.nu
mMesh.mesh2D.Mesh2D.extrude
Failed example:
print Tri2D().extrude(layers=2).getCellCenters()
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.mesh2D.Mesh2D.extrude[3]>", line 1, in <module>
print Tri2D().extrude(layers=2).getCellCenters()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 91, in __init__
Mesh2D.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 596, in _calcGeomet
ry
self._calcFaceNormals()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 77, in _calcFace
Normals
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.cellDistanceVectors) < 0)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 841, in dot
return a2.dot(a1)
ValueError: matrices are not aligned


==============================================================h4. 
FAIL: Grid1D (fipy.meshes.numMesh.grid1D)
Doctest: fipy.meshes.numMesh.grid1D.Grid1D
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 2201, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for fipy.meshes.numMesh.grid1D.Grid1D
  File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid1D.py", line 45, in Grid1D

----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid1D.py", line 49, in fipy.meshes.num
Mesh.grid1D.Grid1D
Failed example:
mesh = Grid1D(nx = 3)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid1D.Grid1D[0]>", line 1, in <module>
mesh = Grid1D(nx = 3)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid1D.py", line 92, in __init__
Mesh1D.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 600, in _calcGeomet
ry
self._calcFaceCellToCellNormals()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 521, in _calcFaceC
ellToCellNormals
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.faceCellToCellNormals) < 0)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 835, in dot
return a1.dot(a2)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid1D.py", line 50, in fipy.meshes.num
Mesh.grid1D.Grid1D
Failed example:
print mesh.getCellCenters()
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid1D.Grid1D[1]>", line 1, in <module>
print mesh.getCellCenters()
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid1D.py", line 53, in fipy.meshes.num
Mesh.grid1D.Grid1D
Failed example:
mesh = Grid1D(dx = (1, 2, 3))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid1D.Grid1D[2]>", line 1, in <module>
mesh = Grid1D(dx = (1, 2, 3))
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid1D.py", line 92, in __init__
Mesh1D.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 600, in _calcGeomet
ry
self._calcFaceCellToCellNormals()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 521, in _calcFaceC
ellToCellNormals
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.faceCellToCellNormals) < 0)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 835, in dot
return a1.dot(a2)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid1D.py", line 54, in fipy.meshes.num
Mesh.grid1D.Grid1D
Failed example:
print mesh.getCellCenters()
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid1D.Grid1D[3]>", line 1, in <module>
print mesh.getCellCenters()
NameError: name 'mesh' is not defined


==============================================================h4. 
FAIL: _test (fipy.meshes.numMesh.grid1D.Grid1D)
Doctest: fipy.meshes.numMesh.grid1D.Grid1D._test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 2201, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for fipy.meshes.numMesh.grid1D.Grid1D._test
  File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid1D.py", line 306, in _test

----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid1D.py", line 314, in fipy.meshes.nu
mMesh.grid1D.Grid1D._test
Failed example:
mesh = Grid1D(nx=3., dx=(1., 2., 3.))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid1D.Grid1D._test[1]>", line 1, in <module>
mesh = Grid1D(nx=3., dx=(1., 2., 3.))
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid1D.py", line 92, in __init__
Mesh1D.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 600, in _calcGeomet
ry
self._calcFaceCellToCellNormals()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 521, in _calcFaceC
ellToCellNormals
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.faceCellToCellNormals) < 0)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 835, in dot
return a1.dot(a2)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid1D.py", line 315, in fipy.meshes.nu
mMesh.grid1D.Grid1D._test
Failed example:
var = CellVariable(mesh=mesh)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid1D.Grid1D._test[2]>", line 1, in <module>
var = CellVariable(mesh=mesh)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid1D.py", line 316, in fipy.meshes.nu
mMesh.grid1D.Grid1D._test
Failed example:
DiffusionTerm().solve(var)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid1D.Grid1D._test[3]>", line 1, in <module>
DiffusionTerm().solve(var)
NameError: name 'var' is not defined


==============================================================h4. 
FAIL: _test (fipy.meshes.numMesh.grid2D.Grid2D)
Doctest: fipy.meshes.numMesh.grid2D.Grid2D._test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 2201, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for fipy.meshes.numMesh.grid2D.Grid2D._test
  File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 340, in _test

----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 350, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
mesh = Grid2D(nx = nx, ny = ny, dx = dx, dy = dy)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[4]>", line 1, in <module>
mesh = Grid2D(nx = nx, ny = ny, dx = dx, dy = dy)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 111, in __init__

Mesh2D.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 596, in _calcGeomet
ry
self._calcFaceNormals()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 77, in _calcFace
Normals
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.cellDistanceVectors) < 0)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 841, in dot
return a2.dot(a1)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 356, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(vertices, mesh._createVertices())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[8]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(vertices, mesh._createVertices())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 361, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(faces, mesh._createFaces())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[10]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(faces, mesh._createFaces())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 368, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(cells, mesh._createCells())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[12]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(cells, mesh._createCells())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 372, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(externalFaces,
numerix.nonzero(mesh.getExteriorFaces()))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[14]>", line 2, in <module>
numerix.nonzero(mesh.getExteriorFaces()))
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 377, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(internalFaces,
numerix.nonzero(mesh.getInteriorFaces()))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[16]>", line 2, in <module>
numerix.nonzero(mesh.getInteriorFaces()))
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 384, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(faceCellIds, mesh.getFaceCellIDs())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[19]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(faceCellIds, mesh.getFaceCellIDs())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 389, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(faceAreas, mesh._getFaceAreas(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[21]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(faceAreas, mesh._getFaceAreas(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 394, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(faceCenters, mesh.getFaceCenters(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[24]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(faceCenters, mesh.getFaceCenters(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 399, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(faceNormals, mesh._getFaceNormals(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[26]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(faceNormals, mesh._getFaceNormals(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 406, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(cellToFaceOrientations, mesh._getCellFaceOrientations())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[28]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(cellToFaceOrientations, mesh._getCellFaceOrientations())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 410, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(cellVolumes, mesh.getCellVolumes(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[30]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(cellVolumes, mesh.getCellVolumes(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 415, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print numerix.allclose(mesh.getCellCenters(), cellCenters, atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[32]>", line 1, in <module>
print numerix.allclose(mesh.getCellCenters(), cellCenters, atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 420, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(faceToCellDistances, mesh._getFaceToCellDistances(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[34]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(faceToCellDistances, mesh._getFaceToCellDistances(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 430, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(cellDistances, mesh._getCellDistances(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[36]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(cellDistances, mesh._getCellDistances(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 434, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(faceToCellDistanceRatios, mesh._getFaceToCellDistanceRatio(), atol = 1e-10, rtol = 1e-
10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[38]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(faceToCellDistanceRatios, mesh._getFaceToCellDistanceRatio(), atol = 1e-10, rtol =
 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 438, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(areaProjections, mesh._getAreaProjections(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[40]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(areaProjections, mesh._getAreaProjections(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 443, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(tangents1, mesh._getFaceTangents1(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[42]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(tangents1, mesh._getFaceTangents1(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 447, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(tangents2, mesh._getFaceTangents2(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[44]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(tangents2, mesh._getFaceTangents2(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 454, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(cellToCellIDs, mesh._getCellToCellIDs())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[46]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(cellToCellIDs, mesh._getCellToCellIDs())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 461, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(cellToCellDistances, mesh._getCellToCellDistances(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[48]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(cellToCellDistances, mesh._getCellToCellDistances(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 465, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(interiorCellIDs, mesh._getInteriorCellIDs())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[50]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(interiorCellIDs, mesh._getInteriorCellIDs())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 469, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(exteriorCellIDs, mesh._getExteriorCellIDs())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[52]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(exteriorCellIDs, mesh._getExteriorCellIDs())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 480, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(cellNormals, mesh._getCellNormals(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[54]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(cellNormals, mesh._getCellNormals(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 491, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(cellAreaProjections, mesh._getCellAreaProjections(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[56]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(cellAreaProjections, mesh._getCellAreaProjections(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 499, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(mesh._getCellVertexIDs(), cellVertexIDs)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[58]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(mesh._getCellVertexIDs(), cellVertexIDs)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 503, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
(f, filename) = dump.write(mesh, extension = '.gz')
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[60]>", line 1, in <module>
(f, filename) = dump.write(mesh, extension = '.gz')
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 504, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
unpickledMesh = dump.read(filename, f)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[61]>", line 1, in <module>
unpickledMesh = dump.read(filename, f)
NameError: name 'filename' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 506, in fipy.meshes.nu
mMesh.grid2D.Grid2D._test
Failed example:
print numerix.allclose(mesh.getCellCenters(), unpickledMesh.getCellCenters())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid2D.Grid2D._test[62]>", line 1, in <module>
print numerix.allclose(mesh.getCellCenters(), unpickledMesh.getCellCenters())
NameError: name 'mesh' is not defined


==============================================================h4. 
FAIL: _test (fipy.meshes.numMesh.grid3D.Grid3D)
Doctest: fipy.meshes.numMesh.grid3D.Grid3D._test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 2201, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for fipy.meshes.numMesh.grid3D.Grid3D._test
  File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 390, in _test

----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 402, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
mesh = Grid3D(nx = nx, ny = ny, nz = nz, dx = dx, dy = dy, dz = dz)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[6]>", line 1, in <module>
mesh = Grid3D(nx = nx, ny = ny, nz = nz, dx = dx, dy = dy, dz = dz)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 139, in __init__

Mesh.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 592, in _calcGeomet
ry
self._calcFaceAreas()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 475, in _calcFaceA
reas
self.faceAreas = numerix.sqrtDot(cross, cross) / 2.
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 857, in sqrtDot
return inline._optionalInline(_sqrtDotIn, _sqrtDotPy, a1, a2)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\inline.py", line 18, in _optionalInline
return pythonFn(*args)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 861, in _sqrtDotPy
return sqrt(dot(a1, a2))
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 835, in dot
return a1.dot(a2)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 408, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(mesh._getAdjacentCellIDs(), adjacentCellIDs)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[8]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(mesh._getAdjacentCellIDs(), adjacentCellIDs)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 419, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(vertices, mesh._createVertices())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[11]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(vertices, mesh._createVertices())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 426, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(faces, mesh._createFaces())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[13]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(faces, mesh._createFaces())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 435, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(cells, mesh._createCells())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[15]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(cells, mesh._createCells())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 439, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(externalFaces,
numerix.nonzero(mesh.getExteriorFaces()))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[17]>", line 2, in <module>
numerix.nonzero(mesh.getExteriorFaces()))
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 444, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or  numerix.allequal(internalFaces,
numerix.nonzero(mesh.getInteriorFaces()))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[19]>", line 2, in <module>
numerix.nonzero(mesh.getInteriorFaces()))
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 451, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(faceCellIds, mesh.getFaceCellIDs())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[22]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(faceCellIds, mesh.getFaceCellIDs())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 460, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(faceAreas, mesh._getFaceAreas(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[27]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(faceAreas, mesh._getFaceAreas(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 465, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(faceCenters, mesh.getFaceCenters(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[30]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(faceCenters, mesh.getFaceCenters(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 471, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(faceNormals, mesh._getFaceNormals(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[32]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(faceNormals, mesh._getFaceNormals(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 480, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(cellToFaceOrientations, mesh._getCellFaceOrientations())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[34]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(cellToFaceOrientations, mesh._getCellFaceOrientations())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 484, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(cellVolumes, mesh.getCellVolumes(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[36]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(cellVolumes, mesh.getCellVolumes(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 490, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print numerix.allclose(cellCenters, mesh.getCellCenters(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[38]>", line 1, in <module>
print numerix.allclose(cellCenters, mesh.getCellCenters(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 495, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(faceToCellDistances, mesh._getFaceToCellDistances(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[40]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(faceToCellDistances, mesh._getFaceToCellDistances(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 501, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(cellDistances, mesh._getCellDistances(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[42]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(cellDistances, mesh._getCellDistances(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 505, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(faceToCellDistanceRatios, mesh._getFaceToCellDistanceRatio(), atol = 1e-10, rtol = 1e-
10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[44]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(faceToCellDistanceRatios, mesh._getFaceToCellDistanceRatio(), atol = 1e-10, rtol =
 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 509, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(areaProjections, mesh._getAreaProjections(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[46]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(areaProjections, mesh._getAreaProjections(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 515, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(tangents1, mesh._getFaceTangents1(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[48]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(tangents1, mesh._getFaceTangents1(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 521, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(tangents2, mesh._getFaceTangents2(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[50]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(tangents2, mesh._getFaceTangents2(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 530, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(mesh._getCellToCellIDs(), cellToCellIDs)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[52]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(mesh._getCellToCellIDs(), cellToCellIDs)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 539, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(mesh._getCellToCellIDsFilled(), cellToCellIDsFilled)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[54]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(mesh._getCellToCellIDsFilled(), cellToCellIDsFilled)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 543, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(cellToCellDistances, mesh._getCellToCellDistances(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[56]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(cellToCellDistances, mesh._getCellToCellDistances(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 547, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
numerix.allequal(interiorCellIDs, mesh._getInteriorCellIDs())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[58]>", line 1, in <module>
numerix.allequal(interiorCellIDs, mesh._getInteriorCellIDs())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 551, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(exteriorCellIDs, mesh._getExteriorCellIDs())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[60]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(exteriorCellIDs, mesh._getExteriorCellIDs())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 572, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(cellNormals, mesh._getCellNormals(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[62]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(cellNormals, mesh._getCellNormals(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 593, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(cellAreaProjections, mesh._getCellAreaProjections(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[64]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(cellAreaProjections, mesh._getCellAreaProjections(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 602, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(mesh._getCellVertexIDs(), cellVertexIDs)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[68]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(mesh._getCellVertexIDs(), cellVertexIDs)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 606, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
(f, filename) = dump.write(mesh, extension = '.gz')
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[70]>", line 1, in <module>
(f, filename) = dump.write(mesh, extension = '.gz')
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 607, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
unpickledMesh = dump.read(filename, f)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[71]>", line 1, in <module>
unpickledMesh = dump.read(filename, f)
NameError: name 'filename' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 609, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
print numerix.allclose(mesh.getCellCenters(), unpickledMesh.getCellCenters())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[72]>", line 1, in <module>
print numerix.allclose(mesh.getCellCenters(), unpickledMesh.getCellCenters())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 615, in fipy.meshes.nu
mMesh.grid3D.Grid3D._test
Failed example:
Grid3D(nx=2., ny=2., nz=2., dx=(1., 2.), dy=(1., 2.), dz=(1., 2.))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.grid3D.Grid3D._test[73]>", line 1, in <module>
Grid3D(nx=2., ny=2., nz=2., dx=(1., 2.), dy=(1., 2.), dz=(1., 2.))
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 139, in __init__

Mesh.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 592, in _calcGeomet
ry
self._calcFaceAreas()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 475, in _calcFaceA
reas
self.faceAreas = numerix.sqrtDot(cross, cross) / 2.
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 857, in sqrtDot
return inline._optionalInline(_sqrtDotIn, _sqrtDotPy, a1, a2)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\inline.py", line 18, in _optionalInline
return pythonFn(*args)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 861, in _sqrtDotPy
return sqrt(dot(a1, a2))
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 835, in dot
return a1.dot(a2)
ValueError: matrices are not aligned


==============================================================h4. 
FAIL: _test (fipy.meshes.numMesh.tri2D.Tri2D)
Doctest: fipy.meshes.numMesh.tri2D.Tri2D._test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 2201, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for fipy.meshes.numMesh.tri2D.Tri2D._test
  File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 201, in _test

----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 211, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
mesh = Tri2D(nx = nx, ny = ny, dx = dx, dy = dy)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[4]>", line 1, in <module>
mesh = Tri2D(nx = nx, ny = ny, dx = dx, dy = dy)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 91, in __init__
Mesh2D.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 596, in _calcGeomet
ry
self._calcFaceNormals()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 77, in _calcFace
Normals
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.cellDistanceVectors) < 0)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 841, in dot
return a2.dot(a1)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 217, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
numerix.allequal(vertices, mesh._createVertices())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[7]>", line 1, in <module>
numerix.allequal(vertices, mesh._createVertices())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 222, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
numerix.allequal(faces, mesh._createFaces())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[9]>", line 1, in <module>
numerix.allequal(faces, mesh._createFaces())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 228, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
numerix.allequal(cells, mesh._createCells())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[11]>", line 1, in <module>
numerix.allequal(cells, mesh._createCells())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 232, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
print numerix.allequal(externalFaces,
numerix.nonzero(mesh.getExteriorFaces()))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[13]>", line 2, in <module>
numerix.nonzero(mesh.getExteriorFaces()))
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 237, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
print numerix.allequal(internalFaces,
numerix.nonzero(mesh.getInteriorFaces()))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[15]>", line 2, in <module>
numerix.nonzero(mesh.getInteriorFaces()))
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 244, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
numerix.allequal(faceCellIds, mesh.getFaceCellIDs())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[18]>", line 1, in <module>
numerix.allequal(faceCellIds, mesh.getFaceCellIDs())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 251, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
numerix.allclose(faceAreas, mesh._getFaceAreas(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[21]>", line 1, in <module>
numerix.allclose(faceAreas, mesh._getFaceAreas(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 256, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
numerix.allclose(faceCenters, mesh.getFaceCenters(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[24]>", line 1, in <module>
numerix.allclose(faceCenters, mesh.getFaceCenters(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 264, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
numerix.allclose(faceNormals, mesh._getFaceNormals(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[28]>", line 1, in <module>
numerix.allclose(faceNormals, mesh._getFaceNormals(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 270, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
numerix.allequal(cellToFaceOrientations, mesh._getCellFaceOrientations())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[30]>", line 1, in <module>
numerix.allequal(cellToFaceOrientations, mesh._getCellFaceOrientations())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 276, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
numerix.allclose(cellVolumes, mesh.getCellVolumes(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[32]>", line 1, in <module>
numerix.allclose(cellVolumes, mesh.getCellVolumes(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 283, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
print numerix.allclose(cellCenters, mesh.getCellCenters(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[36]>", line 1, in <module>
print numerix.allclose(cellCenters, mesh.getCellCenters(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 290, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
numerix.allclose(faceToCellDistances, mesh._getFaceToCellDistances(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[40]>", line 1, in <module>
numerix.allclose(faceToCellDistances, mesh._getFaceToCellDistances(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 298, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
numerix.allclose(cellDistances, mesh._getCellDistances(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[43]>", line 1, in <module>
numerix.allclose(cellDistances, mesh._getCellDistances(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 302, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
numerix.allclose(faceToCellDistanceRatios, mesh._getFaceToCellDistanceRatio(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[45]>", line 1, in <module>
numerix.allclose(faceToCellDistanceRatios, mesh._getFaceToCellDistanceRatio(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 306, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
numerix.allclose(areaProjections, mesh._getAreaProjections(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[47]>", line 1, in <module>
numerix.allclose(areaProjections, mesh._getAreaProjections(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 311, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
numerix.allclose(tangents1, mesh._getFaceTangents1(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[49]>", line 1, in <module>
numerix.allclose(tangents1, mesh._getFaceTangents1(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 315, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
numerix.allclose(tangents2, mesh._getFaceTangents2(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[51]>", line 1, in <module>
numerix.allclose(tangents2, mesh._getFaceTangents2(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 321, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
numerix.allequal(cellToCellIDs, mesh._getCellToCellIDs())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[53]>", line 1, in <module>
numerix.allequal(cellToCellIDs, mesh._getCellToCellIDs())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 327, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
numerix.allclose(cellToCellDistances, mesh._getCellToCellDistances(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[55]>", line 1, in <module>
numerix.allclose(cellToCellDistances, mesh._getCellToCellDistances(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 331, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
numerix.allequal(interiorCellIDs, mesh._getInteriorCellIDs())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[57]>", line 1, in <module>
numerix.allequal(interiorCellIDs, mesh._getInteriorCellIDs())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 335, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
numerix.allequal(exteriorCellIDs, mesh._getExteriorCellIDs())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[59]>", line 1, in <module>
numerix.allequal(exteriorCellIDs, mesh._getExteriorCellIDs())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 344, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
numerix.allclose(cellNormals, mesh._getCellNormals(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[61]>", line 1, in <module>
numerix.allclose(cellNormals, mesh._getCellNormals(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 353, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
numerix.allclose(cellAreaProjections, mesh._getCellAreaProjections(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[63]>", line 1, in <module>
numerix.allclose(cellAreaProjections, mesh._getCellAreaProjections(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 366, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
numerix.allclose(mesh._getCellVertexIDs(), cellVertexIDs)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[71]>", line 1, in <module>
numerix.allclose(mesh._getCellVertexIDs(), cellVertexIDs)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 371, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
(f, filename) = dump.write(mesh, extension = '.gz')
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[73]>", line 1, in <module>
(f, filename) = dump.write(mesh, extension = '.gz')
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 372, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
unpickledMesh = dump.read(filename, f)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[74]>", line 1, in <module>
unpickledMesh = dump.read(filename, f)
NameError: name 'filename' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 374, in fipy.meshes.num
Mesh.tri2D.Tri2D._test
Failed example:
print numerix.allequal(mesh.getCellCenters(), unpickledMesh.getCellCenters())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.tri2D.Tri2D._test[75]>", line 1, in <module>
print numerix.allequal(mesh.getCellCenters(), unpickledMesh.getCellCenters())
NameError: name 'mesh' is not defined


==============================================================h4. 
FAIL: gmshImport (fipy.meshes.numMesh)
Doctest: fipy.meshes.numMesh.gmshImport
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 2201, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for fipy.meshes.numMesh.gmshImport
  File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 7, in gmshImport


----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 61, in fipy.meshes
.numMesh.gmshImport
Failed example:
newmesh = GmshImporter3D('fipy/meshes/numMesh/testgmsh.msh')
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.gmshImport[0]>", line 1, in <module>
newmesh = GmshImporter3D('fipy/meshes/numMesh/testgmsh.msh')
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 454, in __in
it__
mesh.Mesh.__init__(self, **_DataGetter(mshfile.getFilename(), dimensions=3).getData())
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 193, in getD
ata
self.inFile = open(self.filename)
IOError: [2](Errno) No such file or directory: 'fipy/meshes/numMesh/testgmsh.msh'
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 62, in fipy.meshes
.numMesh.gmshImport
Failed example:
print newmesh.getVertexCoords()
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.gmshImport[1]>", line 1, in <module>
print newmesh.getVertexCoords()
NameError: name 'newmesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 67, in fipy.meshes
.numMesh.gmshImport
Failed example:
print newmesh._getFaceVertexIDs()
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.gmshImport[2]>", line 1, in <module>
print newmesh._getFaceVertexIDs()
NameError: name 'newmesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 72, in fipy.meshes
.numMesh.gmshImport
Failed example:
print newmesh._getCellFaceIDs()
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.gmshImport[3]>", line 1, in <module>
print newmesh._getCellFaceIDs()
NameError: name 'newmesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 78, in fipy.meshes
.numMesh.gmshImport
Failed example:
mesh = GmshImporter2DIn3DSpace('fipy/meshes/numMesh/GmshTest2D.msh')
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.gmshImport[4]>", line 1, in <module>
mesh = GmshImporter2DIn3DSpace('fipy/meshes/numMesh/GmshTest2D.msh')
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 445, in __in
it__
GmshImporter2D.__init__(self, arg, coordDimensions=3)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 437, in __in
it__
mesh2D.Mesh2D.__init__(self, **_DataGetter(mshfile.getFilename(), dimensions=2, coordDimensions=coordDimensions).getData())
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 193, in getD
ata
self.inFile = open(self.filename)
IOError: [2](Errno) No such file or directory: 'fipy/meshes/numMesh/GmshTest2D.msh'
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 79, in fipy.meshes
.numMesh.gmshImport
Failed example:
print mesh.getVertexCoords()
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.gmshImport[5]>", line 1, in <module>
print mesh.getVertexCoords()
AttributeError: 'module' object has no attribute 'getVertexCoords'
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 84, in fipy.meshes
.numMesh.gmshImport
Failed example:
mesh = GmshImporter2D('fipy/meshes/numMesh/GmshTest2D.msh')
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.gmshImport[6]>", line 1, in <module>
mesh = GmshImporter2D('fipy/meshes/numMesh/GmshTest2D.msh')
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 437, in __in
it__
mesh2D.Mesh2D.__init__(self, **_DataGetter(mshfile.getFilename(), dimensions=2, coordDimensions=coordDimensions).getData())
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 193, in getD
ata
self.inFile = open(self.filename)
IOError: [2](Errno) No such file or directory: 'fipy/meshes/numMesh/GmshTest2D.msh'
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 85, in fipy.meshes
.numMesh.gmshImport
Failed example:
print mesh.getVertexCoords()
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.gmshImport[7]>", line 1, in <module>
print mesh.getVertexCoords()
AttributeError: 'module' object has no attribute 'getVertexCoords'
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 89, in fipy.meshes
.numMesh.gmshImport
Failed example:
print mesh._getFaceVertexIDs()
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.gmshImport[8]>", line 1, in <module>
print mesh._getFaceVertexIDs()
AttributeError: 'module' object has no attribute '_getFaceVertexIDs'
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 93, in fipy.meshes
.numMesh.gmshImport
Failed example:
print (mesh._getCellFaceIDs() h2. [[0, 0, 2, 7, 7, 8, 12, 14],
[1, 3, 5, 4, 8, 10, 13, 11],
[2, 4, 6, 6, 9, 11, 9, 12]]).flatten().all()
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.gmshImport[9]>", line 1, in <module>
print (mesh._getCellFaceIDs() [[0, 0, 2, 7, 7, 8, 12, 14],
AttributeError: 'module' object has no attribute '_getCellFaceIDs'
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 121, in fipy.meshe
s.numMesh.gmshImport
Failed example:
mesh = GmshImporter2D(lines)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.gmshImport[13]>", line 1, in <module>
mesh = GmshImporter2D(lines)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 437, in __in
it__
mesh2D.Mesh2D.__init__(self, **_DataGetter(mshfile.getFilename(), dimensions=2, coordDimensions=coordDimensions).getData())
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 196, in getD
ata
vertexCoords = self._calcVertexCoords(self.coordDimensions)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 241, in _cal
cVertexCoords
numVertices = int(nodeLines[0])
TypeError: 'NoneType' object has no attribute '__getitem__'
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 122, in fipy.meshe
s.numMesh.gmshImport
Failed example:
print mesh.getCellVolumes()[0] > 0
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.gmshImport[14]>", line 1, in <module>
print mesh.getCellVolumes()[0] > 0
AttributeError: 'module' object has no attribute 'getCellVolumes'
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 133, in fipy.meshe
s.numMesh.gmshImport
Failed example:
mesh = GmshImporter2D(lines)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.gmshImport[16]>", line 1, in <module>
mesh = GmshImporter2D(lines)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 437, in __in
it__
mesh2D.Mesh2D.__init__(self, **_DataGetter(mshfile.getFilename(), dimensions=2, coordDimensions=coordDimensions).getData())
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 196, in getD
ata
vertexCoords = self._calcVertexCoords(self.coordDimensions)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 241, in _cal
cVertexCoords
numVertices = int(nodeLines[0])
TypeError: 'NoneType' object has no attribute '__getitem__'
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 134, in fipy.meshe
s.numMesh.gmshImport
Failed example:
print mesh.getCellVolumes()[0] > 0
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.gmshImport[17]>", line 1, in <module>
print mesh.getCellVolumes()[0] > 0
AttributeError: 'module' object has no attribute 'getCellVolumes'


==============================================================h4. 
FAIL: GmshImporter3D (fipy.meshes.numMesh.gmshImport)
Doctest: fipy.meshes.numMesh.gmshImport.GmshImporter3D
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 2201, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for fipy.meshes.numMesh.gmshImport.GmshImporter3D
  File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 447, in GmshImpo
rter3D

----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 449, in fipy.meshe
s.numMesh.gmshImport.GmshImporter3D
Failed example:
mesh = GmshImporter3D('fipy/meshes/numMesh/testgmsh.msh')
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.gmshImport.GmshImporter3D[0]>", line 1, in <module>
mesh = GmshImporter3D('fipy/meshes/numMesh/testgmsh.msh')
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 454, in __in
it__
mesh.Mesh.__init__(self, **_DataGetter(mshfile.getFilename(), dimensions=3).getData())
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\gmshImport.py", line 193, in getD
ata
self.inFile = open(self.filename)
IOError: [2](Errno) No such file or directory: 'fipy/meshes/numMesh/testgmsh.msh'


==============================================================h4. 
FAIL: PeriodicGrid1D (fipy.meshes.numMesh.periodicGrid1D)
Doctest: fipy.meshes.numMesh.periodicGrid1D.PeriodicGrid1D
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 2201, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for fipy.meshes.numMesh.periodicGrid1D.PeriodicGrid1D
  File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\periodicGrid1D.py", line 43, in Perio
dicGrid1D

----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\periodicGrid1D.py", line 51, in fipy.me
shes.numMesh.periodicGrid1D.PeriodicGrid1D
Failed example:
mesh = PeriodicGrid1D(dx = (1, 2, 3))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.periodicGrid1D.PeriodicGrid1D[2]>", line 1, in <module>
mesh = PeriodicGrid1D(dx = (1, 2, 3))
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\periodicGrid1D.py", line 87, in _
_init__
Grid1D.__init__(self, dx = dx, nx = nx)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid1D.py", line 92, in __init__
Mesh1D.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 600, in _calcGeomet
ry
self._calcFaceCellToCellNormals()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 521, in _calcFaceC
ellToCellNormals
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.faceCellToCellNormals) < 0)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 835, in dot
return a1.dot(a2)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\periodicGrid1D.py", line 53, in fipy.me
shes.numMesh.periodicGrid1D.PeriodicGrid1D
Failed example:
print (parallel.procID > 0
or numerix.allclose(numerix.nonzero(mesh.getExteriorFaces())[0],
[3]))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.periodicGrid1D.PeriodicGrid1D[3]>", line 2, in <module>
or numerix.allclose(numerix.nonzero(mesh.getExteriorFaces())[0],
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\periodicGrid1D.py", line 58, in fipy.me
shes.numMesh.periodicGrid1D.PeriodicGrid1D
Failed example:
print (parallel.procID > 0
or numerix.allclose(mesh.getFaceCellIDs().filled(-999),
[[2, 0, 1, 2],
[0, 1, 2, -999]]))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.periodicGrid1D.PeriodicGrid1D[4]>", line 2, in <module>
or numerix.allclose(mesh.getFaceCellIDs().filled(-999),
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\periodicGrid1D.py", line 64, in fipy.me
shes.numMesh.periodicGrid1D.PeriodicGrid1D
Failed example:
print (parallel.procID > 0
or numerix.allclose(mesh._getCellDistances(),
[ 2., 1.5, 2.5, 1.5]))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.periodicGrid1D.PeriodicGrid1D[5]>", line 2, in <module>
or numerix.allclose(mesh._getCellDistances(),
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\periodicGrid1D.py", line 69, in fipy.me
shes.numMesh.periodicGrid1D.PeriodicGrid1D
Failed example:
print (parallel.procID > 0
or numerix.allclose(mesh._getCellToCellDistances(),
[[ 2.,   1.5,  2.5],
[ 1.5,  2.5,  2. ]]))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.periodicGrid1D.PeriodicGrid1D[6]>", line 2, in <module>
or numerix.allclose(mesh._getCellToCellDistances(),
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\periodicGrid1D.py", line 75, in fipy.me
shes.numMesh.periodicGrid1D.PeriodicGrid1D
Failed example:
print (parallel.procID > 0
or numerix.allclose(mesh._getFaceNormals(),
[[ 1.,  1.,  1.,  1.]]))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.periodicGrid1D.PeriodicGrid1D[7]>", line 2, in <module>
or numerix.allclose(mesh._getFaceNormals(),
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\periodicGrid1D.py", line 80, in fipy.me
shes.numMesh.periodicGrid1D.PeriodicGrid1D
Failed example:
print (parallel.procID > 0
or numerix.allclose(mesh._getCellVertexIDs(),
[[1, 2, 2],
[0, 1, 0]]))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.periodicGrid1D.PeriodicGrid1D[8]>", line 2, in <module>
or numerix.allclose(mesh._getCellVertexIDs(),
NameError: name 'mesh' is not defined


==============================================================h4. 
FAIL: PeriodicGrid2D (fipy.meshes.numMesh.periodicGrid2D)
Doctest: fipy.meshes.numMesh.periodicGrid2D.PeriodicGrid2D
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 2201, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for fipy.meshes.numMesh.periodicGrid2D.PeriodicGrid2D
  File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\periodicGrid2D.py", line 42, in Perio
dicGrid2D

----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\periodicGrid2D.py", line 51, in fipy.me
shes.numMesh.periodicGrid2D.PeriodicGrid2D
Failed example:
mesh = PeriodicGrid2D(dx = 1., dy = 0.5, nx = 2, ny = 2)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.periodicGrid2D.PeriodicGrid2D[2]>", line 1, in <module>
mesh = PeriodicGrid2D(dx = 1., dy = 0.5, nx = 2, ny = 2)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\periodicGrid2D.py", line 101, in
__init__
Grid2D.__init__(self, dx = dx, dy = dy, nx = nx, ny = ny)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 111, in __init__

Mesh2D.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 596, in _calcGeomet
ry
self._calcFaceNormals()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 77, in _calcFace
Normals
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.cellDistanceVectors) < 0)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 841, in dot
return a2.dot(a1)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\periodicGrid2D.py", line 53, in fipy.me
shes.numMesh.periodicGrid2D.PeriodicGrid2D
Failed example:
print (parallel.procID > 0 or
numerix.allclose(numerix.nonzero(mesh.getExteriorFaces())[0],
[ 4,  5,  8, 11]))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.periodicGrid2D.PeriodicGrid2D[3]>", line 2, in <module>
numerix.allclose(numerix.nonzero(mesh.getExteriorFaces())[0],
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\periodicGrid2D.py", line 58, in fipy.me
shes.numMesh.periodicGrid2D.PeriodicGrid2D
Failed example:
print (parallel.procID > 0 or
numerix.allclose(mesh.getFaceCellIDs().filled(-1),
[[2, 3, 0, 1, 2, 3, 1, 0, 1, 3, 2, 3],
[0, 1, 2, 3, -1, -1, 0, 1, -1, 2, 3, -1]]))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.periodicGrid2D.PeriodicGrid2D[4]>", line 2, in <module>
numerix.allclose(mesh.getFaceCellIDs().filled(-1),
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\periodicGrid2D.py", line 64, in fipy.me
shes.numMesh.periodicGrid2D.PeriodicGrid2D
Failed example:
print (parallel.procID > 0 or
numerix.allclose(mesh._getCellDistances(),
[ 0.5, 0.5, 0.5, 0.5, 0.25, 0.25, 1., 1., 0.5, 1., 1., 0.5]))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.periodicGrid2D.PeriodicGrid2D[5]>", line 2, in <module>
numerix.allclose(mesh._getCellDistances(),
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\periodicGrid2D.py", line 69, in fipy.me
shes.numMesh.periodicGrid2D.PeriodicGrid2D
Failed example:
print (parallel.procID > 0
or numerix.allclose(mesh._getCellFaceIDs(),
[[0, 1, 2, 3],
[7, 6, 10, 9],
[2, 3, 0, 1],
[6, 7, 9, 10]]))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.periodicGrid2D.PeriodicGrid2D[6]>", line 2, in <module>
or numerix.allclose(mesh._getCellFaceIDs(),
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\periodicGrid2D.py", line 77, in fipy.me
shes.numMesh.periodicGrid2D.PeriodicGrid2D
Failed example:
print (parallel.procID > 0 or
numerix.allclose(mesh._getCellToCellDistances(),
[[ 0.5, 0.5, 0.5, 0.5],
[ 1., 1., 1., 1. ],
[ 0.5, 0.5, 0.5, 0.5],
[ 1., 1., 1., 1. ]]))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.periodicGrid2D.PeriodicGrid2D[7]>", line 2, in <module>
numerix.allclose(mesh._getCellToCellDistances(),
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\periodicGrid2D.py", line 88, in fipy.me
shes.numMesh.periodicGrid2D.PeriodicGrid2D
Failed example:
print (parallel.procID > 0
or numerix.allclose(mesh._getFaceNormals(), normals))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.periodicGrid2D.PeriodicGrid2D[9]>", line 2, in <module>
or numerix.allclose(mesh._getFaceNormals(), normals))
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\periodicGrid2D.py", line 92, in fipy.me
shes.numMesh.periodicGrid2D.PeriodicGrid2D
Failed example:
print (parallel.procID > 0
or numerix.allclose(mesh._getCellVertexIDs(),
[[4, 5, 7, 8],
[3, 4, 6, 7],
[1, 2, 4, 5],
[0, 1, 3, 4]]))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.periodicGrid2D.PeriodicGrid2D[10]>", line 2, in <module>
or numerix.allclose(mesh._getCellVertexIDs(),
NameError: name 'mesh' is not defined


==============================================================h4. 
FAIL: _concatenate (fipy.meshes.numMesh.uniformGrid1D.UniformGrid1D)
Doctest: fipy.meshes.numMesh.uniformGrid1D.UniformGrid1D._concatenate
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 2201, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for fipy.meshes.numMesh.uniformGrid1D.UniformGrid1D._concatenate
  File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\uniformGrid1D.py", line 117, in _conc
atenate

----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\uniformGrid1D.py", line 129, in fipy.me
shes.numMesh.uniformGrid1D.UniformGrid1D._concatenate
Failed example:
if parallel.Nproc h2. 1:
c =  UniformGrid1D(nx=10) + (UniformGrid1D(nx=10) + 10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.uniformGrid1D.UniformGrid1D._concatenate[5]>", line 2, in <module>
c =  UniformGrid1D(nx=10) + (UniformGrid1D(nx=10) + 10)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 74, in __add__
return self._concatenate(other, smallNumber = 1e-15)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\uniformGrid1D.py", line 138, in _
concatenate
return self._getConcatenableMesh()._concatenate(other = other, smallNumber = smallNumber)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\uniformGrid1D.py", line 115, in _
getConcatenableMesh
cellFaceIDs = self._createCells())
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 600, in _calcGeomet
ry
self._calcFaceCellToCellNormals()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 521, in _calcFaceC
ellToCellNormals
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.faceCellToCellNormals) < 0)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 835, in dot
return a1.dot(a2)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\uniformGrid1D.py", line 131, in fipy.me
shes.numMesh.uniformGrid1D.UniformGrid1D._concatenate
Failed example:
print (parallel.Nproc > 1
or numerix.allclose(c.getCellCenters()[0],
[0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5,
12.5, 13.5, 14.5, 15.5, 16.5, 17.5, 18.5, 19.5]))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.uniformGrid1D.UniformGrid1D._concatenate[6]>", line 2, in <module>
or numerix.allclose(c.getCellCenters()[0],
NameError: name 'c' is not defined

============================================================h4. 
FAIL: CylindricalGrid1D (fipy.meshes.numMesh.cylindricalGrid1D)
Doctest: fipy.meshes.numMesh.cylindricalGrid1D.CylindricalGrid1D
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 2201, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for fipy.meshes.numMesh.cylindricalGrid1D.CylindricalGrid1D
  File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid1D.py", line 44, in Cy
lindricalGrid1D

----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid1D.py", line 48, in fipy
.meshes.numMesh.cylindricalGrid1D.CylindricalGrid1D
Failed example:
mesh = CylindricalGrid1D(nx = 3)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid1D.CylindricalGrid1D[0]>", line 1, in <module>
mesh = CylindricalGrid1D(nx = 3)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid1D.py", line 67, i
n __init__
Grid1D.__init__(self, dx=dx, nx=nx, overlap=overlap)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid1D.py", line 92, in __init__
Mesh1D.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 600, in _calcGeomet
ry
self._calcFaceCellToCellNormals()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 521, in _calcFaceC
ellToCellNormals
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.faceCellToCellNormals) < 0)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 835, in dot
return a1.dot(a2)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid1D.py", line 49, in fipy
.meshes.numMesh.cylindricalGrid1D.CylindricalGrid1D
Failed example:
print mesh.getCellCenters()
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid1D.CylindricalGrid1D[1]>", line 1, in <module>
print mesh.getCellCenters()
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid1D.py", line 52, in fipy
.meshes.numMesh.cylindricalGrid1D.CylindricalGrid1D
Failed example:
mesh = CylindricalGrid1D(dx = (1, 2, 3))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid1D.CylindricalGrid1D[2]>", line 1, in <module>
mesh = CylindricalGrid1D(dx = (1, 2, 3))
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid1D.py", line 67, i
n __init__
Grid1D.__init__(self, dx=dx, nx=nx, overlap=overlap)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid1D.py", line 92, in __init__
Mesh1D.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 600, in _calcGeomet
ry
self._calcFaceCellToCellNormals()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 521, in _calcFaceC
ellToCellNormals
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.faceCellToCellNormals) < 0)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 835, in dot
return a1.dot(a2)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid1D.py", line 53, in fipy
.meshes.numMesh.cylindricalGrid1D.CylindricalGrid1D
Failed example:
print mesh.getCellCenters()
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid1D.CylindricalGrid1D[3]>", line 1, in <module>
print mesh.getCellCenters()
NameError: name 'mesh' is not defined


==============================================================h4. 
FAIL: _test (fipy.meshes.numMesh.cylindricalGrid1D.CylindricalGrid1D)
Doctest: fipy.meshes.numMesh.cylindricalGrid1D.CylindricalGrid1D._test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 2201, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for fipy.meshes.numMesh.cylindricalGrid1D.CylindricalGrid1D._test
  File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid1D.py", line 95, in _t
est

----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid1D.py", line 102, in fip
y.meshes.numMesh.cylindricalGrid1D.CylindricalGrid1D._test
Failed example:
mesh = CylindricalGrid1D(nx=3., dx=(1., 2., 3.))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid1D.CylindricalGrid1D._test[1]>", line 1, in <module>
mesh = CylindricalGrid1D(nx=3., dx=(1., 2., 3.))
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid1D.py", line 67, i
n __init__
Grid1D.__init__(self, dx=dx, nx=nx, overlap=overlap)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid1D.py", line 92, in __init__
Mesh1D.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 600, in _calcGeomet
ry
self._calcFaceCellToCellNormals()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 521, in _calcFaceC
ellToCellNormals
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.faceCellToCellNormals) < 0)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 835, in dot
return a1.dot(a2)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid1D.py", line 103, in fip
y.meshes.numMesh.cylindricalGrid1D.CylindricalGrid1D._test
Failed example:
var = CellVariable(mesh=mesh)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid1D.CylindricalGrid1D._test[2]>", line 1, in <module>
var = CellVariable(mesh=mesh)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid1D.py", line 104, in fip
y.meshes.numMesh.cylindricalGrid1D.CylindricalGrid1D._test
Failed example:
DiffusionTerm().solve(var)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid1D.CylindricalGrid1D._test[3]>", line 1, in <module>
DiffusionTerm().solve(var)
NameError: name 'var' is not defined


==============================================================h4. 
FAIL: _test (fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D)
Doctest: fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 2201, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
  File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 91, in _t
est

----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 103, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
mesh = CylindricalGrid2D(nx = nx, ny = ny, dx = dx, dy = dy)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[5]>", line 1, in <module>
mesh = CylindricalGrid2D(nx = nx, ny = ny, dx = dx, dy = dy)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 57, i
n __init__
Grid2D.__init__(self, dx=dx, dy=dy, nx=nx, ny=ny, overlap=overlap, parallelModule=parallelModule)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 111, in __init__

Mesh2D.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 596, in _calcGeomet
ry
self._calcFaceNormals()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 77, in _calcFace
Normals
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.cellDistanceVectors) < 0)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 841, in dot
return a2.dot(a1)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 108, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(vertices, mesh._createVertices())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[8]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(vertices, mesh._createVertices())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 113, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(faces, mesh._createFaces())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[10]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(faces, mesh._createFaces())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 120, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(cells, mesh._createCells())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[12]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(cells, mesh._createCells())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 124, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(externalFaces,
numerix.nonzero(mesh.getExteriorFaces()))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[14]>", line 2, in <module>
numerix.nonzero(mesh.getExteriorFaces()))
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 129, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(internalFaces,
numerix.nonzero(mesh.getInteriorFaces()))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[16]>", line 2, in <module>
numerix.nonzero(mesh.getInteriorFaces()))
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 136, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(faceCellIds, mesh.getFaceCellIDs())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[19]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(faceCellIds, mesh.getFaceCellIDs())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 141, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
if parallel.procID h2. 0:
faceAreas = faceAreas * mesh.getFaceCenters()[0]
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[21]>", line 2, in <module>
faceAreas = faceAreas * mesh.getFaceCenters()[0]
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 143, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(faceAreas, mesh._getFaceAreas(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[22]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(faceAreas, mesh._getFaceAreas(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 148, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(faceCenters, mesh.getFaceCenters(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[25]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(faceCenters, mesh.getFaceCenters(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 153, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(faceNormals, mesh._getFaceNormals(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[27]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(faceNormals, mesh._getFaceNormals(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 160, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(cellToFaceOrientations, mesh._getCellFaceOrientations())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[29]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(cellToFaceOrientations, mesh._getCellFaceOrientations())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 164, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
if parallel.procID 0:
cellVolumes = cellVolumes * mesh.getCellCenters()[0]
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[31]>", line 2, in <module>
cellVolumes = cellVolumes * mesh.getCellCenters()[0]
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 166, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print numerix.allclose(cellVolumes, mesh.getCellVolumes(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[32]>", line 1, in <module>
print numerix.allclose(cellVolumes, mesh.getCellVolumes(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 171, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print numerix.allclose(cellCenters, mesh.getCellCenters(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[34]>", line 1, in <module>
print numerix.allclose(cellCenters, mesh.getCellCenters(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 176, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(faceToCellDistances, mesh._getFaceToCellDistances(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[36]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(faceToCellDistances, mesh._getFaceToCellDistances(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 186, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(cellDistances, mesh._getCellDistances(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[38]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(cellDistances, mesh._getCellDistances(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 190, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(faceToCellDistanceRatios, mesh._getFaceToCellDistanceRatio(), atol = 1e-10, rtol = 1e-
10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[40]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(faceToCellDistanceRatios, mesh._getFaceToCellDistanceRatio(), atol = 1e-10, rtol =
 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 194, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(areaProjections, mesh._getAreaProjections(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[42]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(areaProjections, mesh._getAreaProjections(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 199, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(tangents1, mesh._getFaceTangents1(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[44]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(tangents1, mesh._getFaceTangents1(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 203, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(tangents2, mesh._getFaceTangents2(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[46]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(tangents2, mesh._getFaceTangents2(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 210, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(cellToCellIDs, mesh._getCellToCellIDs())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[48]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(cellToCellIDs, mesh._getCellToCellIDs())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 217, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(cellToCellDistances, mesh._getCellToCellDistances(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[50]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(cellToCellDistances, mesh._getCellToCellDistances(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 221, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(interiorCellIDs, mesh._getInteriorCellIDs())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[52]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(interiorCellIDs, mesh._getInteriorCellIDs())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 225, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print parallel.procID > 0 or numerix.allequal(exteriorCellIDs, mesh._getExteriorCellIDs())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[54]>", line 1, in <module>
print parallel.procID > 0 or numerix.allequal(exteriorCellIDs, mesh._getExteriorCellIDs())
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 236, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(cellNormals, mesh._getCellNormals(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[56]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(cellNormals, mesh._getCellNormals(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 247, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
if parallel.procID h2. 0:
cellAreaProjections[:,0] = cellAreaProjections[:,0] * mesh.getCellCenters()[0]
cellAreaProjections[:,1] = cellAreaProjections[:,1] * (mesh.getCellCenters()[0] + mesh.dx / 2.)
cellAreaProjections[:,2] = cellAreaProjections[:,2] * mesh.getCellCenters()[0]
cellAreaProjections[:,3] = cellAreaProjections[:,3] * (mesh.getCellCenters()[0] - mesh.dx / 2.)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[58]>", line 2, in <module>
cellAreaProjections[:,0] = cellAreaProjections[:,0] * mesh.getCellCenters()[0]
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 252, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(cellAreaProjections, mesh._getCellAreaProjections(), atol = 1e-10, rtol = 1e-10)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[59]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(cellAreaProjections, mesh._getCellAreaProjections(), atol = 1e-10, rtol = 1e-10)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 260, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print parallel.procID > 0 or numerix.allclose(mesh._getCellVertexIDs(), cellVertexIDs)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[61]>", line 1, in <module>
print parallel.procID > 0 or numerix.allclose(mesh._getCellVertexIDs(), cellVertexIDs)
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 264, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
(f, filename) = dump.write(mesh, extension = '.gz')
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[63]>", line 1, in <module>
(f, filename) = dump.write(mesh, extension = '.gz')
NameError: name 'mesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 265, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
unpickledMesh = dump.read(filename, f)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[64]>", line 1, in <module>
unpickledMesh = dump.read(filename, f)
NameError: name 'filename' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\cylindricalGrid2D.py", line 267, in fip
y.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test
Failed example:
print numerix.allclose(mesh.getCellCenters(), unpickledMesh.getCellCenters())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.numMesh.cylindricalGrid2D.CylindricalGrid2D._test[65]>", line 1, in <module>
print numerix.allclose(mesh.getCellCenters(), unpickledMesh.getCellCenters())
NameError: name 'mesh' is not defined

============================================================h4. 
FAIL: __add__ (fipy.meshes.common.mesh.Mesh)
Doctest: fipy.meshes.common.mesh.Mesh.__add__
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 2201, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for fipy.meshes.common.mesh.Mesh.__add__
  File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 65, in __add__

----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 86, in fipy.meshes.common
.mesh.Mesh.__add__
Failed example:
addedMesh = baseMesh + (baseMesh + ((2,), (0,)))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.common.mesh.Mesh.__add__[5]>", line 1, in <module>
addedMesh = baseMesh + (baseMesh + ((2,), (0,)))
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 74, in __add__
return self._concatenate(other, smallNumber = 1e-15)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\uniformGrid2D.py", line 140, in _
concatenate
return self._getConcatenableMesh()._concatenate(other = other._getConcatenableMesh(), smallNumber = smallNumber)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\uniformGrid2D.py", line 137, in _
getConcatenableMesh
return Grid2D(**args) + origin
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 111, in __init__

Mesh2D.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 596, in _calcGeomet
ry
self._calcFaceNormals()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 77, in _calcFace
Normals
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.cellDistanceVectors) < 0)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 841, in dot
return a2.dot(a1)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 87, in fipy.meshes.common
.mesh.Mesh.__add__
Failed example:
print addedMesh.getCellCenters()
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.common.mesh.Mesh.__add__[6]>", line 1, in <module>
print addedMesh.getCellCenters()
NameError: name 'addedMesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 95, in fipy.meshes.common
.mesh.Mesh.__add__
Failed example:
if parallel.Nproc h2. 1:
addedMesh = baseMesh + (baseMesh + ((3,), (0,)))
else:
raise MeshAdditionError("Vertices are not aligned")
Expected:
Traceback (most recent call last):
...
MeshAdditionError: Vertices are not aligned
Got:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.common.mesh.Mesh.__add__[9]>", line 2, in <module>
addedMesh = baseMesh + (baseMesh + ((3,), (0,)))
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 74, in __add__
return self._concatenate(other, smallNumber = 1e-15)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\uniformGrid2D.py", line 140, in _
concatenate
return self._getConcatenableMesh()._concatenate(other = other._getConcatenableMesh(), smallNumber = smallNumber)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\uniformGrid2D.py", line 137, in _
getConcatenableMesh
return Grid2D(**args) + origin
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 111, in __init__

Mesh2D.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 596, in _calcGeomet
ry
self._calcFaceNormals()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 77, in _calcFace
Normals
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.cellDistanceVectors) < 0)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 841, in dot
return a2.dot(a1)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 103, in fipy.meshes.commo
n.mesh.Mesh.__add__
Failed example:
if parallel.Nproc 1:
addedMesh = baseMesh + (baseMesh + ((2,), (2,)))
else:
raise MeshAdditionError("Faces are not aligned")
Expected:
Traceback (most recent call last):
...
MeshAdditionError: Faces are not aligned
Got:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.common.mesh.Mesh.__add__[10]>", line 2, in <module>
addedMesh = baseMesh + (baseMesh + ((2,), (2,)))
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 74, in __add__
return self._concatenate(other, smallNumber = 1e-15)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\uniformGrid2D.py", line 140, in _
concatenate
return self._getConcatenableMesh()._concatenate(other = other._getConcatenableMesh(), smallNumber = smallNumber)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\uniformGrid2D.py", line 137, in _
getConcatenableMesh
return Grid2D(**args) + origin
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 111, in __init__

Mesh2D.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 596, in _calcGeomet
ry
self._calcFaceNormals()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 77, in _calcFace
Normals
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.cellDistanceVectors) < 0)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 841, in dot
return a2.dot(a1)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 113, in fipy.meshes.commo
n.mesh.Mesh.__add__
Failed example:
addedMesh = baseMesh + (baseMesh + ((1,), (0,)))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.common.mesh.Mesh.__add__[11]>", line 1, in <module>
addedMesh = baseMesh + (baseMesh + ((1,), (0,)))
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 74, in __add__
return self._concatenate(other, smallNumber = 1e-15)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\uniformGrid2D.py", line 140, in _
concatenate
return self._getConcatenableMesh()._concatenate(other = other._getConcatenableMesh(), smallNumber = smallNumber)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\uniformGrid2D.py", line 137, in _
getConcatenableMesh
return Grid2D(**args) + origin
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 111, in __init__

Mesh2D.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 596, in _calcGeomet
ry
self._calcFaceNormals()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 77, in _calcFace
Normals
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.cellDistanceVectors) < 0)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 841, in dot
return a2.dot(a1)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 114, in fipy.meshes.commo
n.mesh.Mesh.__add__
Failed example:
print addedMesh.getCellCenters()
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.common.mesh.Mesh.__add__[12]>", line 1, in <module>
print addedMesh.getCellCenters()
NameError: name 'addedMesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 121, in fipy.meshes.commo
n.mesh.Mesh.__add__
Failed example:
triMesh = Tri2D(dx = 1.0, dy = 1.0, nx = 2, ny = 1)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.common.mesh.Mesh.__add__[14]>", line 1, in <module>
triMesh = Tri2D(dx = 1.0, dy = 1.0, nx = 2, ny = 1)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 91, in __init__
Mesh2D.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 596, in _calcGeomet
ry
self._calcFaceNormals()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 77, in _calcFace
Normals
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.cellDistanceVectors) < 0)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 841, in dot
return a2.dot(a1)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 122, in fipy.meshes.commo
n.mesh.Mesh.__add__
Failed example:
triMesh = triMesh + ((2,), (0,))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.common.mesh.Mesh.__add__[15]>", line 1, in <module>
triMesh = triMesh + ((2,), (0,))
NameError: name 'triMesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 123, in fipy.meshes.commo
n.mesh.Mesh.__add__
Failed example:
triAddedMesh = baseMesh + triMesh
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.common.mesh.Mesh.__add__[16]>", line 1, in <module>
triAddedMesh = baseMesh + triMesh
NameError: name 'triMesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 128, in fipy.meshes.commo
n.mesh.Mesh.__add__
Failed example:
print numerix.allclose(triAddedMesh.getCellCenters(),
cellCenters)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.common.mesh.Mesh.__add__[18]>", line 1, in <module>
print numerix.allclose(triAddedMesh.getCellCenters(),
NameError: name 'triAddedMesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 134, in fipy.meshes.commo
n.mesh.Mesh.__add__
Failed example:
triMesh = Tri2D(dx = 1.0, dy = 2.0, nx = 2, ny = 1)
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.common.mesh.Mesh.__add__[19]>", line 1, in <module>
triMesh = Tri2D(dx = 1.0, dy = 2.0, nx = 2, ny = 1)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\tri2D.py", line 91, in __init__
Mesh2D.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 596, in _calcGeomet
ry
self._calcFaceNormals()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 77, in _calcFace
Normals
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.cellDistanceVectors) < 0)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 841, in dot
return a2.dot(a1)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 135, in fipy.meshes.commo
n.mesh.Mesh.__add__
Failed example:
triMesh = triMesh + ((2,), (0,))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.common.mesh.Mesh.__add__[20]>", line 1, in <module>
triMesh = triMesh + ((2,), (0,))
NameError: name 'triMesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 136, in fipy.meshes.commo
n.mesh.Mesh.__add__
Failed example:
if parallel.Nproc h2. 1:
triAddedMesh = baseMesh + triMesh
else:
raise MeshAdditionError("Faces are not aligned")
Expected:
Traceback (most recent call last):
...
MeshAdditionError: Faces are not aligned
Got:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.common.mesh.Mesh.__add__[21]>", line 2, in <module>
triAddedMesh = baseMesh + triMesh
NameError: name 'triMesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 151, in fipy.meshes.commo
n.mesh.Mesh.__add__
Failed example:
threeDAddedMesh = threeDBaseMesh + (threeDSecondMesh + ((2,), (0,), (0,)))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.common.mesh.Mesh.__add__[25]>", line 1, in <module>
threeDAddedMesh = threeDBaseMesh + (threeDSecondMesh + ((2,), (0,), (0,)))
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 74, in __add__
return self._concatenate(other, smallNumber = 1e-15)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\uniformGrid3D.py", line 161, in _
concatenate
return self._getConcatenableMesh()._concatenate(other = other, smallNumber = smallNumber)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\uniformGrid3D.py", line 158, in _
getConcatenableMesh
return Grid3D(**args) + origin
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 139, in __init__

Mesh.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 592, in _calcGeomet
ry
self._calcFaceAreas()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 475, in _calcFaceA
reas
self.faceAreas = numerix.sqrtDot(cross, cross) / 2.
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 857, in sqrtDot
return inline._optionalInline(_sqrtDotIn, _sqrtDotPy, a1, a2)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\inline.py", line 18, in _optionalInline
return pythonFn(*args)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 861, in _sqrtDotPy
return sqrt(dot(a1, a2))
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 835, in dot
return a1.dot(a2)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 152, in fipy.meshes.commo
n.mesh.Mesh.__add__
Failed example:
print threeDAddedMesh.getCellCenters()
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.common.mesh.Mesh.__add__[26]>", line 1, in <module>
print threeDAddedMesh.getCellCenters()
NameError: name 'threeDAddedMesh' is not defined
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 160, in fipy.meshes.commo
n.mesh.Mesh.__add__
Failed example:
InvalidMesh = threeDBaseMesh + baseMesh
Expected:
Traceback (most recent call last):
...
MeshAdditionError: Dimensions do not match
Got:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.common.mesh.Mesh.__add__[27]>", line 1, in <module>
InvalidMesh = threeDBaseMesh + baseMesh
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 74, in __add__
return self._concatenate(other, smallNumber = 1e-15)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\uniformGrid3D.py", line 161, in _
concatenate
return self._getConcatenableMesh()._concatenate(other = other, smallNumber = smallNumber)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\uniformGrid3D.py", line 158, in _
getConcatenableMesh
return Grid3D(**args) + origin
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid3D.py", line 139, in __init__

Mesh.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 592, in _calcGeomet
ry
self._calcFaceAreas()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 475, in _calcFaceA
reas
self.faceAreas = numerix.sqrtDot(cross, cross) / 2.
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 857, in sqrtDot
return inline._optionalInline(_sqrtDotIn, _sqrtDotPy, a1, a2)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\inline.py", line 18, in _optionalInline
return pythonFn(*args)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 861, in _sqrtDotPy
return sqrt(dot(a1, a2))
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 835, in dot
return a1.dot(a2)
ValueError: matrices are not aligned

============================================================h4. 
FAIL: __mul__ (fipy.meshes.common.mesh.Mesh)
Doctest: fipy.meshes.common.mesh.Mesh.__mul__
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 2201, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for fipy.meshes.common.mesh.Mesh.__mul__
  File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 167, in __mul__

----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 194, in fipy.meshes.commo
n.mesh.Mesh.__mul__
Failed example:
dilatedMesh = baseMesh * ((3,), (2,), (1,))
Expected:
Traceback (most recent call last):
...
ValueError: shape mismatch: objects cannot be broadcast to a single shape
Got:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.common.mesh.Mesh.__mul__[7]>", line 1, in <module>
dilatedMesh = baseMesh * ((3,), (2,), (1,))
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\uniformGrid2D.py", line 128, in _
_mul__
origin=numerix.array(self.args['origin']) * factor, overlap=self.args['overlap'])
ValueError: operands could not be broadcast together with shapes (2,1) (3,1)


==================================================================
FAIL: _getNearestCellID (fipy.meshes.common.mesh.Mesh)
Doctest: fipy.meshes.common.mesh.Mesh._getNearestCellID
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 2201, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for fipy.meshes.common.mesh.Mesh._getNearestCellID
  File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 750, in _getNearestCell
ID

----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 755, in fipy.meshes.commo
n.mesh.Mesh._getNearestCellID
Failed example:
m0 = Grid2D(dx=(.1, 1., 10.), dy=(.1, 1., 10.))
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.common.mesh.Mesh._getNearestCellID[1]>", line 1, in <module>
m0 = Grid2D(dx=(.1, 1., 10.), dy=(.1, 1., 10.))
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\grid2D.py", line 51, in Grid2D
return grid2D.Grid2D(dx=dx, dy=dy, nx=nx, ny=ny, overlap=overlap, parallelModule=parallelModule)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\grid2D.py", line 111, in __init__

Mesh2D.__init__(self, vertices, faces, cells)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 68, in __init__
_CommonMesh.__init__(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 63, in __init__
self._calcGeometry()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh.py", line 458, in _calcGeome
try
_CommonMesh._calcGeometry(self)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 596, in _calcGeomet
ry
self._calcFaceNormals()
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\numMesh\mesh2D.py", line 77, in _calcFace
Normals
orientation = 1 - 2 * (numerix.dot(self.faceNormals, self.cellDistanceVectors) < 0)
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\tools\numerix.py", line 841, in dot
return a2.dot(a1)
ValueError: matrices are not aligned
----------------------------------------------------------------------
File "\appdata\local\enthought\canopy\user\lib\site-packages\fipy\meshes\common\mesh.py", line 757, in fipy.meshes.commo
n.mesh.Mesh._getNearestCellID
Failed example:
print m0._getNearestCellID(m1.getCellCenters().getGlobalValue())
Exception raised:
Traceback (most recent call last):
File "C:\Program Files\Enthought\Canopy\App\appdata\canopy-1.0.3.1262.win-x86_64\lib\doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest fipy.meshes.common.mesh.Mesh._getNearestCellID[3]>", line 1, in <module>
print m0._getNearestCellID(m1.getCellCenters().getGlobalValue())
NameError: name 'm0' is not defined

Imported from trac ticket #662, created by pfeldman on 12-22-2013 at 17:23, last modified: 12-22-2013 at 17:23

@guyer
Copy link
Member

guyer commented Aug 14, 2015

FiPy's tests expect to run from the outermost directory (that contains fipy/ and examples/). It would be good if they worked regardless, but imports can be really unpredictable.

Assuming this is still an issue (this ticket is quite old) Try running fipy/meshes/test.py from the outer directory.

Also, gmsh seems to be unavailable.

@guyer guyer closed this as completed Aug 14, 2015
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

2 participants