Skip to content

Shared-vertex ghostmode does not throw error, even if not implemented #3678

Open
@jorgensd

Description

@jorgensd

Summarize the issue

One can create a mesh with "shared_vertex" as input, and it will not throw an error.

How to reproduce the bug

See below. Originally reported at
https://fenicsproject.discourse.group/t/unexpected-behaviour-of-ghostmode-shared-vertex/17342/2

Minimal Example (Python)

from dolfinx import mesh
from mpi4py import MPI

domain = mesh.create_unit_square(
    MPI.COMM_WORLD, 4, 4, mesh.CellType.triangle,
    ghost_mode=mesh.GhostMode.shared_vertex  # or shared_facet
)

tdim = domain.topology.dim
num_local = domain.topology.index_map(tdim).size_local
num_ghost = domain.topology.index_map(tdim).num_ghosts

Output (Python)

Version

main branch

DOLFINx git commit

No response

Installation

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions