Skip to content

BUG: Incorrect entity orientations on non-overlapping quad meshes #4476

@pbrubeck

Description

@pbrubeck

Describe the bug
Non-overlapping quad meshes seem to be getting incorrect entity orientations.

Steps to Reproduce
Steps to reproduce the behavior:

from firedrake import *
distribution = {"overlap_type": (DistributedMeshOverlapType.NONE, 0)}
mesh = UnitSquareMesh(2, 1, quadrilateral=True, distribution_parameters=distribution)
x, y = SpatialCoordinate(mesh)
V = FunctionSpace(mesh, "RTCE", 1)
f = Function(V).project(grad(2*x + y))
print(f.dat.data_with_halos)

mpiexec -n 1 script.py

[1. 1. 1. 1. 1. 1. 1.]

mpiexec -n 2 script.py

[1.50000000e+00 1.00000000e+00 1.00000000e+00 2.77555756e-17]
[ 2.77555756e-17  1.00000000e+00 -1.50000000e+00  1.00000000e+00]

Expected behavior
The coefficients of grad(2*x+y) in RTCE(1) on a 2x1 mesh should all be either 1 or -1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions