Access of local value in Data objects in python
Created by Lutz Gross
- Keywords:
- 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:
in=Data(..)
out=Data(..)
for i in xrange(
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.