Hello,

Any idea when the version of FENICS will be released for MAC OS 9?

-Michael Sacks

March 11, 2014 at 4:00 AM
The problem is that you set the parameter too late, before the
function space is generated. Try this, and note that the values array
must be flattened and larger to contain all first derivatives:

from dolfin import *
import numpy as np

parameters["form_compiler"]["no-evaluate_basis_derivatives"] = False

mesh = UnitSquareMesh(8,8)

Q = FunctionSpace(mesh, "CG", 2)

element = Q.dolfin_element()

basis =
np.zeros(2*element.space_dimension()*element.value_dimension(0))

coords = np.array((0.0,0.0))
cell = Cell(mesh, 0)
vc = cell.get_vertex_coordinates()

element.evaluate_basis_derivatives_all(1,basis, coords, vc, 0)

print basis

PS: To mailing list. The UFC manual needs to be (1) integrated into
the FFC manual, (2) updated and improved, and (3) published on the web
page.

--
Anders

_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics

--
Michael Sacks, Ph.D.
W. A. “Tex” Moncrief, Jr. Endowment 
Simulation-based Engineering Sciences Chair I

Institute for Computational Engineering & Sciences

Professor of Biomedical Engineering 

Director, Center for Cardiovascular Simulation

The University of Texas at Austin

201 East 24th St., Stop C0200
Austin, Texas 78712-1229
Tel. 512-232-7773

website: 
http://ccs.ices.utexas.edu/

"There is no Royal Road to geometry"
Euclid's reply to King Ptolemy


_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics

Reply via email to