I’m working with dolfinx via Google Colab, and I’m having some problems with dolfinx.io.gmshio.
I have gmsh installed in the notebook, and I’m trying to use the extract_geometry
and extract_topology_and_markers
methods. However, I get AttributeError: module 'dolfinx.io.gmshio' has no attribute 'extract_geometry'
.
When calling gmshio._has_gmsh
, the console returns False
, and gmshio.__all__
only gives the list ['cell_perm_array', 'ufl_mesh']
, where "extract_topology_and_markers", "extract_geometry", "model_to_mesh", "read_from_msh"
are missing.
Here are the blocks I’m running on Colab:
%%capture
try:
import dolfinx
except ImportError:
!wget "https://fem-on-colab.github.io/releases/fenicsx-install-real.sh" -O "/tmp/fenicsx-install.sh" && bash "/tmp/fenicsx-install.sh"
import dolfinx
!pip install -q gmsh
import gmsh
from dolfinx.io import gmshio
Any idea on why is this happening?
Thanks in advance.