Thanks a lot.

Cheers,
Igor.

> Use a (mesh.dim, N) shaped array. That means for a 1D mesh, you need a (1,
> N) shaped array where N is the number of points for which the value is
> required. So In this case use,
>
>    >>> import fipy
>    >>> m = fipy.Grid1D(nx=3)
>    >>> v = fipy.CellVariable(mesh=m, value=m.getCellCenters()[0])
>    >>> a = fipy.numerix.array([[2.5]])
>    >>> a.shape
>    (1, 1)
>    >>> v(a)
>    array([ 2.5])
>
> Cheers
>
> --
> Daniel Wheeler
>
> _______________________________________________
> fipy mailing list
> [email protected]
> http://www.ctcms.nist.gov/fipy
>  [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]
>

_______________________________________________
fipy mailing list
[email protected]
http://www.ctcms.nist.gov/fipy
  [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Reply via email to