finiteelement demo with YaspGrid not working
When switching to a YaspGrid there is an issue with the jacobianInverseTransposed being converted to a numpy array. The reason being that the return type in this case is not a FieldMatrix but a DiagonalMatrix: jacInvTra = np.array(e.geometry.jacobianInverseTransposed(p.position), copy = False) TypeError: Unable to convert function return value to a Python type! The signature was (dune.generated.grid_4c1008dcc466e715718c2641402add74.Geometry2, dune.common.FieldVector2) -> Dune::DiagonalMatrix<double, 2>