Hi,

I have recently installed FiPy 3.0 on my W7-64 box and I'm getting the same 
error for different
FiPy examples such as mesh20x20.py, coupled.py, mesh1D.py, and so on.  Other 
samples
yield the same error.  Typically, the error message I get is the one below:


C:\PROGRA~1\Python\Lib\site-packages\fipy\examples\diffusion>python mesh1D.py
Traceback (most recent call last):
  File "mesh1D.py", line 660, in <module>
    exec(fipy.tests.doctestPlus._getScript())
  File "<string>", line 145, in <module>
  File "C:\Program Files\Python\lib\site-packages\fipy-3.0-py2.7.egg\fipy\terms\
term.py", line 209, in solve
    solver = self._prepareLinearSystem(var, solver, boundaryConditions, dt)
  File "C:\Program Files\Python\lib\site-packages\fipy-3.0-py2.7.egg\fipy\terms\
term.py", line 171, in _prepareLinearSystem
    buildExplicitIfOther=self._buildExplcitIfOther)
  File "C:\Program
 Files\Python\lib\site-packages\fipy-3.0-py2.7.egg\fipy\terms\
binaryTerm.py", line 68, in _buildAndAddMatrices
   
 buildExplicitIfOther=buildExplicitIfOther)
  File "C:\Program Files\Python\lib\site-packages\fipy-3.0-py2.7.egg\fipy\terms\
unaryTerm.py", line 97, in _buildAndAddMatrices
    diffusionGeomCoeff=diffusionGeomCoeff)
  File "C:\Program Files\Python\lib\site-packages\fipy-3.0-py2.7.egg\fipy\terms\
cellTerm.py", line 164, in _buildMatrix
    self._buildMatrixNoInline_(L=L, oldArray=var.old, b=b, dt=dt, coeffVectors=c
oeffVectors)
  File "C:\Program Files\Python\lib\site-packages\fipy-3.0-py2.7.egg\fipy\terms\
cellTerm.py", line 149, in _buildMatrixNoInline_
    L.addAt(coeffVectors['new value'].ravel() / dt, ids.ravel(), ids.swapaxes(0,
1).ravel())
  File "C:\Program Files\Python\lib\site-packages\fipy-3.0-py2.7.egg\fipy\matric
es\pysparseMatrix.py", line 246, in addAt
    self.matrix.update_add_at(vector, id1, id2)
TypeError: array cannot be safely cast to required type

This is the final result of fipy.test():

----------------------------------------------------------------------
Ran 352 tests in 40.014s

FAILED (failures=33)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Skipped 83 doctest examples because the `tvtk` package cannot be imported
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Any idea?  Thanks in advance.

Fausto
_______________________________________________
fipy mailing list
[email protected]
http://www.ctcms.nist.gov/fipy
  [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Reply via email to