Dear all, Sorry for stupid question, but how to do the same as below, but if v is defined on mesh=Grid1D?
I thought that v((2.5,)) or v(points=(2.5,)) would work, but I get IndexError: 0-d arrays can't be indexed. >>>>> from fipy import * >>>>> m = Grid2D(nx=3, ny=2) >>>>> v = CellVariable(mesh=m, value=m.getCellCenters()[0]) >> ... >> >>>>> v(((2.5, 7.8, 9.9), >> .. (3.2, 1.7, 0.2))) >> array([ 2.5, 2.5, 2.5]) ... >>>>> v(((2.5,),(3.2,))) >> array([ 2.5]) Thanks, Igor. _______________________________________________ fipy mailing list [email protected] http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]
