On Tue, Nov 13, 2012 at 9:42 PM, Allawala, Altan
<[email protected]> wrote:
> Hi Daniel,
>
> Thanks, that fixed it.
>
> You might be interested to know that when I set one of the entries of the
> diffusion tensor to zero, I got an error message saying "TypeError: array
> cannot be safely cast to required type". I got around this problem by change
> the zero entry from "0" to "0*X" (or 0*Y). I found this notational
> requirement a bit odd.
Not sure about the error message, but it isn't really surprising. It
is not possible to do
>>> np.array([[1, 1, 1] , [0]], 'd')
for example and we are mostly constrained by Numpy casting although in
some places FiPy does its own inferences about what is intended.
--
Daniel Wheeler
_______________________________________________
fipy mailing list
[email protected]
http://www.ctcms.nist.gov/fipy
[ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]