Skip to content

SEACAS: IOSS--Update db_zone property after reopening cgns database

James Willenbring requested to merge gsjaardema:seacas-fix-cgns-reopen-db into develop

Created by: gsjaardema

The CGNS library will reorder (sort) zones based on their names, so if an application defines zones to an output file; closes that file and then reopens the file, the zones on the file will have a different ordering or indexing than when they were originally defined on the file.

This commit causes the IOSS library to update the db_zone property on all StructuredBlocks and ElementBlocks when a CGNS database is closed and then reopened. It also verifies that all expected zones (blocks) exist on the database.

Discovered by SPARC team. Verified that fix works for the issue that they reported. Developing a test to make this continues to work.

@trilinos/seacas

Description

Motivation and Context

How Has This Been Tested?

Checklist

  • My commit messages mention the appropriate GitHub issue numbers.
  • My code follows the code style of the affected package(s).
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the code contribution guidelines for this project.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • No new compiler warnings were introduced.
  • These changes break backwards compatibility.

Merge request reports