> Your first case doesn't work because x = array([11,12,13]) is not an array of
> rank-1 vectors; it's an array of rank-0 scalars.
This explanation did the trick for me.
>>> mesh.faceCenters.value
array([[ 0.25 , 0.125, 0.375, 0.125, 0.125, 0. , 1. , 0.875,
0.875, 0.75 , 0
On Jun 20, 2013, at 1:22 PM, Ryan Smith wrote:
> I don't understand the result of 18 being the index if the length of each
> component of mesh.cellCenters.value is 16. So, it seems the biggest problem
> here is that I don't fully understand the use of numerix.nearest(). But, if
> numerix.near