dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #11085
New format of finite_element.signature()
Hello!
To be able to read a function from file in PyDOLFIN we have changed the
signature of generated code for a finite_element. It now equals:
'FiniteElement("Lagrange","Triangle",1)' aso
It is maybe not as readable as the other but now one can use that string to
create a ffc(ufl).FiniteElement in python given a compiled finite_element,
with just:
repr(fe.signature())
You will need the newest version of ffc to be able to utelise DOLFIN
functionality that uses this signature(), e.g. read/write Functions from/to a
file.
Also if you previously have stored a function to file, in an xml format, you
need to either save it again to be able to read it in (sic.) or change the
lines defining the signatures (finite_element and dof_map) in the end of the
file.
Johan
Follow ups