Skip to content

Improve refine output when edge entities are not computed #3844

@schnellerhase

Description

@schnellerhase
import dolfinx
from mpi4py import MPI

mesh = dolfinx.mesh.create_unit_square(MPI.COMM_WORLD, 10, 10)
# mesh.topology.create_entities(1) # This is missing
dolfinx.mesh.refine(mesh)

# Output:
# > IndexError: vector

This should result in an output of dim 1 entities not having been computed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions