jorgensd / dolfinx-tutorial

A reimplementation of the Springer book: https://github.com/hplgit/fenics-tutorial/, covering new topics as well as transitioning from dolfin to dolfinx
https://jorgensd.github.io/dolfinx-tutorial/
110 stars 63 forks source link

Issue with `V = fem.FunctionSpace` in Poisson's example #190

Closed vyastreb closed 6 months ago

vyastreb commented 6 months ago

Hello,

I was trying to get through the first tutorial and in Poisson's example I experienced a problem with the line

V = fem.FunctionSpace(domain, ("Lagrange", 1))

I get

    V = fem.FunctionSpace(domain, ("Lagrange", 1))
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: FunctionSpace.__init__() missing 1 required positional argument: 'cppV

I use DOLFINx version: 0.8.0 based on GIT commit: 7de5fd34d6b554dd3295198f1778c91bf11afa81 of https://github.com/FEniCS/dolfinx/

So I switched to V = fem.functionspace(domain, ("Lagrange", 1)) as used in this demo.

Thanks!

jorgensd commented 6 months ago

Hi @vyastreb I'm in the process of updating the tutorial for 0.8.x. See: https://github.com/jorgensd/dolfinx-tutorial/pull/166

vyastreb commented 6 months ago

Hello @jorgensd, Alright, I see! Thank you for such a prompt reaction!