getting the basic fonction derivatives

Asked by Dupront

Hello,

  In a generated ffc_form_anumber.h file, there is a method called evaluate_basis.
There a formula of each basis function is given.
 Is is possible to get formula for the derivatives ?
 In the method evaluate_basis_derivatives a comment says that the
fonctions have not been generated because the form has been compiled
with the option "-fno-evaluate_basis_derivatives".
How can I swith off this option from a python script ?
Thanks a lot

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Johan Hake
Solved:
Last query:
Last reply:
Revision history for this message
Best Johan Hake (johan-hake) said :
#1

Try:

   form_compiler_parameters={"no-evaluate_basis_derivatives":False}
   assemble(..., form_compiler_parameters=form_compiler_parameters)
   solve(..., form_compiler_parameters=form_compiler_parameters)

Also note that,

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

will not work as "no-evaluate_basis_derivatives" is a ffc specific
parameter, which is not included in the default form_compiler parameters.

Johan

On 07/09/2012 01:35 PM, Dupront wrote:
> New question #202647 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/202647
>
> Hello,
>
> In a generated ffc_form_anumber.h file, there is a method called evaluate_basis.
> There a formula of each basis function is given.
> Is is possible to get formula for the derivatives ?
> In the method evaluate_basis_derivatives a comment says that the
> fonctions have not been generated because the form has been compiled
> with the option "-fno-evaluate_basis_derivatives".
> How can I swith off this option from a python script ?
> Thanks a lot
>

Revision history for this message
Dupront (michel-dupront) said :
#2

Thanks Johan Hake, that solved my question.