Okay, I hadn't noticed that you are running "CURRENT" r2472. I went
back to "CURRENT" and it runs through at least some time steps of
"examples/cahnHilliard/inputTanh1D.py" without issue. What version of
numpy are you using?

On Thu, Nov 27, 2008 at 12:15 PM, Ionut Vancea <[EMAIL PROTECTED]> wrote:
>
> Dear all,
>
> First I would like to say thank you for "fipy". Now, my problems  with it :)
>
> I have just installed fipy, because I would need to solve some
> problems which involve PDE.
>
> It seems that something is wrong because some examples are working (CH
> mesh2d) and some examples not.
>
> Here is what I have:
> OpenSUSE 11:
>
> [EMAIL PROTECTED]:~/pywork/CURRENT> uname -a
> Linux vaio 2.6.25.18-0.2-default #1 SMP 2008-10-21 16:30:26 +0200
> x86_64 x86_64 x86_64 GNU/Linux
> [EMAIL PROTECTED]:~/pywork/CURRENT>
>
>  [EMAIL PROTECTED]:~/pywork/CURRENT> svn update
> At revision 2865.
> [EMAIL PROTECTED]:~/pywork/CURRENT>
>
> python-2.5.2-26.2
> python-matplotlib-0.98.3-2.1
> python-gnuplot-1.8-1.5
> python-numeric-24.2-162.1
> python-scipy-0.6.0-4.2
> python-numpy-1.2.1-7.1
>
> pysparse-1.2a1-py2.5.egg-info
>
> and here is what I obtain for the examples which I said that are not working:
>
> =====
> [EMAIL PROTECTED]:~/pywork/CURRENT> python 
> examples/cahnHilliard/inputTanh1D.py
> /usr/local/lib64/python2.5/site-packages/fipy/viewers/matplotlibViewer/__init__.py:35:
> UserWarning: Matplotlib1DViewer efficiency is improved by setting the
> 'datamax' and 'datamin' keys
>  return Matplotlib1DViewer(vars = vars, title = title, limits = limits)
> Traceback (most recent call last):
>  File "examples/cahnHilliard/inputTanh1D.py", line 233, in <module>
>    exec(fipy.tests.doctestPlus._getScript())
>  File "<string>", line 166, in <module>
>  File "/usr/local/lib64/python2.5/site-packages/fipy/terms/term.py",
> line 121, in solve
>    matrix, RHSvector = self.__buildMatrix(var, boundaryConditions, dt)
>  File "/usr/local/lib64/python2.5/site-packages/fipy/terms/term.py",
> line 88, in __buildMatrix
>    return self._buildMatrix(var, boundaryConditions, dt)
>  File "/usr/local/lib64/python2.5/site-packages/fipy/terms/binaryTerm.py",
> line 66, in _buildMatrix
>    termMatrix, termRHSvector = self.term2._buildMatrix(var,
> boundaryConditions, dt = dt)
>  File "/usr/local/lib64/python2.5/site-packages/fipy/terms/binaryTerm.py",
> line 64, in _buildMatrix
>    matrix, RHSvector = self.term1._buildMatrix(var,
> boundaryConditions, dt = dt)
>  File "/usr/local/lib64/python2.5/site-packages/fipy/terms/diffusionTerm.py",
> line 272, in _buildMatrix
>    self._getCoefficientMatrix(mesh, self.coeffDict['cell 1 diag']),
> numerix.zeros(N,'d'))
>  File "/usr/local/lib64/python2.5/site-packages/fipy/terms/diffusionTerm.py",
> line 167, in _getCoefficientMatrix
>    interiorCoeff = numerix.take(interiorCoeff, mesh._getCellFaceIDs())
>  File "/usr/local/lib64/python2.5/site-packages/fipy/tools/numerix.py",
> line 1231, in take
>    taken = taken.filled()
> AttributeError: 'numpy.ndarray' object has no attribute 'filled'
>
> ========
>
> The other question is if Mayavi2 is working with fipy, I saw on the
> mailing list that it is still not suported but
> I would like to be sure, because I can not find the old version of
> Maya to install it.
>
> That's all for the moment, but I am sure that I will still have questions :)
>
> Thank you.
>
> --
> ===
> Ioan Vancea
> http://www.vioan.ro
>
>



-- 
Daniel Wheeler

Reply via email to