Dear all,
I am working with a submesh following this example . I believe something has changed, but I cannot identify the issue. I am using dolfinx version 0.10.0.post2, and I encounter the following error:
TypeError: ‘EntityMap’ object is not iterable.
Does anyone have a minimal working example?
Thank you for your time!
I didn’t see the example you cited but the following should be a more up to date version:
# # Transfer meshtags to submeshes
# Author: Jørgen S. Dokken
#
# SPDX-License-Identifier: MIT
#
# In DOLFINx, one can create sub-meshes of entities of any co-dimension $(0,\dots,\mathrm{tdim})$.
# For complex meshes, it is not easy to locate subdomains or boundaries of interest.
# In this example, we will import a mesh from GMSH, where we have marked different parts of the domain
# with different markers, and transfer these markers to a submesh.
import os
import sys
import pyvista
from scifem import transfer_meshtags_to_submesh
from mpi4py import MPI
import gmsh
import dolfinx
try:
from dolfinx.io import gmsh as gmshio
This file has been truncated. show original
2 Likes
Thanks for your comment sbhasan. I think I need to update all my code and start over.