Closed mgduda closed 6 years ago
@mgduda, I agree that this is a bug (and it's my fault from 6 or more years ago). If you want to submit a PR, I'd be happy to review/merge it. I agree that the fix is obvious: the normal vector points from the iEdge
to cell2
, not the other way.
PR #1512 addresses this issue.
For edges that represent positive normal inflow along the boundary of a mesh, the
mpas_initialize_vectors
subroutine incorrectly computes the value of theedgeNormalVectors
field due to the transposition of theiEdge
andcell2
locations in the difference here: https://github.com/MPAS-Dev/MPAS/blob/develop/src/operators/mpas_vector_operations.F#L716-L725 .@xylar I can create a PR to address this, but I just wanted to get your input first before proceeding.