I am trying to run the tutorial Generating meshes with subdomains. In Fenics 2018 I get a RecursionError, as was already remarked in Cannot create domain-dependent expression
Apperently one should replace
UserExpression in the tutorial. But then I get the Error: ‘Permeability’ object has no attribute ‘_ufl_shape’.
What are the appropiate modifications in the tutorial to make it run with fenics 2018?