On Mon, Feb 20, 2012 at 1:38 PM, wang yunbo <[email protected]> wrote:
> > Traceback (most recent call last): > File "circle.py", line 11, in <module> > phi[:] = (m.x - L / 2)**2 + (m.y - L / 2)**2 - 0.25**2 > AttributeError: UniformGrid2D instance has no attribute 'x' > Use x, y = m.getCellCenters() instead of m.x and m.y and it should work. The changes to get it ti work with 2.1.3 are trivial so I wouldn't update your version of fipy, -- Daniel Wheeler
_______________________________________________ fipy mailing list [email protected] http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]
