added typeregistry to grid function and use coordinate wrapper
The aim of this feature is to get rid of the difference between globaGridFunction and localGridFunction by using the coordinate wrapper: First approach:
view.gridFunction(lambda x: sin(x[0]*x[0]) )
second approach
def p12dEvaluator(point):
bary = [1-point.local[0]-point.local[1],point.local[0],point.local[1]]
return [ sum(bary[i] * data[mapper.subIndex(point.element, i, 2)]
for i in range(3)) ]
view.gridFunction(p12dEvaluator)
Edited by Andreas Dedner