On Mar 20, 2013, at 9:51 AM, Daniel Wheeler wrote: > On Wed, Mar 20, 2013 at 5:57 AM, Serbulent UNSAL <[email protected]> wrote: > Dear Dan and Raymond, > > Thanks for your help to both. After your suggestions I review my code. > But changing X and Y like > > X = mesh.x > Y = mesh.y > > makes the code seriously slow. > > I'm a little confused. The variables "X" and "Y" don't appear to be used > after lines 34 and 35 so how can it have any influence on the code efficiency?
I think at this point we need to know what `source` really looks like and where it comes from. If it's calculated, there are definitely better ways to calculate it, as Daniel already showed. If it's looked up from some external input, then we need to know exactly how that input is structured. Regardless, I can't imagine any good reason to do all of that itertools.chain -> list business. _______________________________________________ fipy mailing list [email protected] http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]
