Access of local value in Data objects in python

Created by Lutz Gross on on 2009-03-24
local values

Can I access local value in Data objects from python?

Yes, but I don't recommend to do this!

This little script shows you how to do this:

     for i in xrange(in.getNumberOfDataPoints())
          assert isinstance(in_loc, numarray.NumArray)
          out_loc=< some operations on in_loc>

Notice that in_loc and out_loc are numarray objects with same ranks and shape like in and out. in and out both need to be defined on the same FunctionSpace.