Skip to content

Draft: [cleanup][ufl] Remove deprecated ufl code when using ufl-2023.2 or newer.

Robert K requested to merge cleanup/new-ufl-version into master

@andreas.dedner: Some of the github tests are failing, because a newer ufl version is used.

I fixed one definite bug in a different branch (UFLException) that will be merged soon, but here are some of the deprecation warnings one gets. If you test dune-fem with fenics-ufl-2023.2.0:

  • default_domains is going away and a couple of other things.
  • ufl/geometry.py:85: FutureWarning: default_domain is deprecated. self._domain = as_domain(domain)
  • ufl/algorithms/expand_compounds.py:17: FutureWarning: The use of expand_compounds is deprecated and will be removed after December 2023. Please, use apply_algebra_lowering directly instead warnings.warn("The use of expand_compounds is deprecated and will be removed after December 2023. "
  • ufl/differentiation.py:260: DeprecationWarning: The use of Legacy domains will be deprecated by December 2023. Please, use FunctionSpace instead

And there is more...

Merge request reports