evaluate_basis_derivatives in python
I cannot figure out how to use evaluate_
In particular I have understood that now there is available a typemap for ufc-cell in order to use directly a dolfin-cell in functions requiring a ufc-cell but running the following python code:
import numpy as np
from dolfin import *
mesh = Rectangle(
V = VectorFunctionS
v = Function(V)
v_element= V.element()
geo_dim = mesh.geometry(
num_ip = V.split(
cell_derivatives = np.zeros(geo_dim, dtype = "d")
ip_coordinates = np.array([[0 for i in range(geo_dim)] for i in range(num_ip)], dtype = "d")
element_cells = []
for cel in cells(mesh):
element_
v_element.
leads to the following RuntimeError:
RuntimeError: // Function evaluate_
Maybe I have to change the ufc compile options? But how in/from python? Will it then work?
Thanks a lot in advance,
Sincerly
Roberto Alessi
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Anders Logg
- Solved:
- Last query:
- Last reply: