Parameters from dolfin in dolfinx

Hi,

I’m wondering if there’s anything similar to parameters from legacy dolfin inside dolfinx?
Particularly, I’m interested in how to access parameters["form_compiler”] in dolfinx.

Best,

I’m DOLFINx you send in form_compiler_params as a dictionary to the functions that use it (I.e. assemble_*, expression, LinearProblem and NonlinearProblem.

For JIT parameters, see: JIT Parameters and visualization using Pandas — FEniCSx tutorial

For form compiler parameters, see for instance:
https://docs.fenicsproject.org/dolfinx/v0.4.1/python/generated/dolfinx.jit.html?highlight=form_compiler_params#dolfinx.jit.ffcx_jit
and for an example:

2 Likes

Perfect! Thank you so much!