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/
103 stars 60 forks source link

Issue on page /chapter1/fundamentals_code.html #76

Closed MonteiroI closed 2 years ago

MonteiroI commented 2 years ago

Hi. When I was try to run the command

mpirun -n 2 python3 t1.py

I received the message

AttributeError: module 'dolfinx.mesh' has no attribute 'create_unit_square'

I didn't find the create_unit_square function in the module dolfinx.

jorgensd commented 2 years ago

What version of dolfinx are you running? Could you tell me the output of import dolfinx print(f"DOLFINx version: {dolfinx.__version__} based on GIT commit: {dolfinx.git_commit_hash} of https://github.com/FEniCS/dolfinx/")

MonteiroI commented 2 years ago

Hi, I am a user fenics legacy version since 2017. Today I started to use the fenicsx version. I followed the intructions to install fenicsx on a ubuntu system by add the ppa. Using the command print(f"DOLFINx version: {dolfinx.__version__} based on GIT commit: {dolfinx.git_commit_hash} of https://github.com/FEniCS/dolfinx/") I received the message DOLFINx version: 0.3.0 based on GIT commit: unknown of https://github.com/FEniCS/dolfinx/

jorgensd commented 2 years ago

To run a tutorial compatible with 0.3.0, you need to use the notebooks from the 0.3.0 release https://github.com/jorgensd/dolfinx-tutorial/tree/v0.3.0

MonteiroI commented 2 years ago

I would like to work with the 0.4.0 version. Is possible to install the 0.4.0 version using ppa in a ubuntu system?

jorgensd commented 2 years ago

I would like to work with the 0.4.0 version. Is possible to install the 0.4.0 version using ppa in a ubuntu system?

It is not on the PPA yet, as the release is fairly recent (last week).

MonteiroI commented 2 years ago

Ok. Thank you. Best regards

MonteiroI commented 2 years ago

I'm sorry. I'm totally lost. How can I see the tutorial in the 0.3.0 version? Could you give me a direction? I opened https://github.com/jorgensd/dolfinx-tutorial/tree/v0.3.0 but I don't know how to see this tutorial version. When I click on the webpage in the readme.md I entered in 0.4.0 tutorial version.

jorgensd commented 2 years ago

There is no webpage version of 0.3.0, But you can download the notebooks from the link I supplied (They are inside chapter1, chapter2 etc).

MonteiroI commented 2 years ago

Ok. I hadn't understood. Thank you.