Skip to content

Disallow meshes with different cell types in a MeshSeq #302

Description

@joewallwork

@ddundo: At the same time I wasn't sure if anyone would even want to do this. And if they do do it, assert self.finite_element.cell == mesh.coordinates.ufl_element().cell in Field.get_element would return an error. So if it really is super niche, perhaps I could just write a comment saying that this line assumes that all cell types are the same? And then we can address it in the future if needed?

@jwallwork23: Ah sorry, just realised I merged before this got resolved. I agree that we should just disallow having meshes with different cell types for simplicity. Indeed, it seems like a niche request and it would just cause us headaches I think.

Originally posted by @ddundo in #301 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions