On Wed, Jan 2, 2013 at 11:37 AM, Fausto Arinos de A. Barbuto < [email protected]> wrote:
> > This error occurs on a computer running Windows 7-64 bit. Curiously, the > very same script > runs flawlessly on another box running Ubuntu 12.04-64. > > Any hints? Thanks in advance. > > Fausto > Hi Fausto, Can you post the output from running the tests on each platform? Might show if there are some differences in the dependencies. > > > Traceback (most recent call last): > File "Ex7.2_All.py", line 127, in <module> > Is this supposed to be a link? Doesn't work for me. > DiffusionTerm(coeff=D).solve(var=T,boundaryConditions=BCs) > File "C:\Program Files\Python\lib\site-packages\fipy\terms\term.py", > line 209, in solve > solver = self._prepareLinearSystem(var, solver, boundaryConditions, dt) > File "C:\Program Files\Python\lib\site-packages\fipy\terms\term.py", > line 171, in _prepare > LinearSystem > buildExplicitIfOther=self._buildExplcitIfOther) > File "C:\Program > Files\Python\lib\site-packages\fipy\terms\unaryTerm.py", line 97, in _bui > ldAndAddMatrices > diffusionGeomCoeff=diffusionGeomCoeff) > File "C:\Program > Files\Python\lib\site-packages\fipy\terms\abstractDiffusionTerm.py", line > 353, in _buildMatrix > L.addAt(self.constraintL.ravel(), ids.ravel(), > ids.swapaxes(0,1).ravel()) > File "C:\Program > Files\Python\lib\site-packages\fipy\matrices\pysparseMatrix.py", line 246 > , in addAt > self.matrix.update_add_at(vector, id1, id2) > TypeError: array cannot be safely cast to required type > Maybe a difference in pysparse versions or in 32 versus 64 bit architecture or something like that. Post the output from the tests and we can get a better feel for the issue. Cheers -- Daniel Wheeler
_______________________________________________ fipy mailing list [email protected] http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]
