Skip to content

Cgns cpex 41 fix - #123

Merged
aumuell merged 2 commits into
hlrs-vis:masterfrom
vlad32768:cgns_cpex_41_fix
Oct 1, 2025
Merged

Cgns cpex 41 fix#123
aumuell merged 2 commits into
hlrs-vis:masterfrom
vlad32768:cgns_cpex_41_fix

Conversation

@vlad32768

Copy link
Copy Markdown
Contributor

-- Fix for libcgns 3.4+: CPEX 41 NGON modification proposal.

CGNS library v.3.4+ API and file format change:
For MIXED and NGON section types:

  1. Old cg_elements_read() fails,
  2. Introduced new ElementStartOffset array,
  3. Introduced new cg_poly_elements_read() function that reads
        ElementConnectivity and ElementStartOffset arrays,
  4. In new CGNS file format, ElementConnectivity stays the same,
       they just added ElementStartOffset array.

-- Also fixed crash when trying to read structural grids.

CGNS library v.3.4+ API and file format change:
For MIXED and NGON section types:
1. Old cg_elements_read() fails,
2. Introduced new ElementStartOffset array,
3. Introduced new cg_poly_elements_read() function that reads
    ElementConnectivity and ElementStartOffset arrays,
4. In new CGNS file format, ElementConnectivity stays the same,
   they just added ElementStartOffset array.
… and zonesize array in ReadCGNS.cpp and zone.cpp.

2. Minor refactoring, mostly clang-tidy fixes.
@aumuell
aumuell merged commit 254af43 into hlrs-vis:master Oct 1, 2025
2 checks passed
@vlad32768
vlad32768 deleted the cgns_cpex_41_fix branch October 3, 2025 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants