Skip to content

Exodus encode reorders faces without writing an element map #1910

Open

Description

@cmdupuis3

_encode_exodus sorts the face list by node count (conn_nofill.sort(key=len)) so it can write one element block per face size. It never writes an elem_num_map, and _read_exodus doesn't look for one, so the original face order is lost. A mixed mesh reads back with its faces grouped by size. Any face-centered data written next to it no longer lines up with its faces, and nothing raises a warning or an error. This bug was hidden until #1753 was fixed, because before that every face was counted at full width and went into a single block. With faces [tri, quad, tri], face_lon goes in as [3.35, 15.0, 6.69] and comes back as [3.35, 6.69, 15.0]. Two possible fixes: write elem_num_map on encode and use it on read to put faces back in order, or keep the grouping and return the permutation so callers can reorder their data. Sub-issue of #1658.

Activity

  1. self-assigned this
    on Nov 19, 2026
  2. added
    bug
    on Nov 19, 2026
  3. moved this from 📚 Backlog to 📝 To-Do in UXarray Developmenton Nov 19, 2026
  4. added
    accuracy
    on Nov 19, 2026
  5. moved this from 📝 To-Do to 🏗 In progress in UXarray Developmenton Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

accuracybug

Type

No type

Fields

Priority

Medium

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions