Skip to content

HYRAX-2005, remove unused FONcByte.h and FONcByte.cc and the correspo… - #1417

Merged
kyang2014 merged 16 commits into
masterfrom
hyrax-2005
Aug 11, 2026
Merged

HYRAX-2005, remove unused FONcByte.h and FONcByte.cc and the correspo…#1417
kyang2014 merged 16 commits into
masterfrom
hyrax-2005

Conversation

@kyang2014

@kyang2014 kyang2014 commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

…nding affected files.

Description

Reference ticket: HYRAX-2005
Clean up the source code files(*.cc and *.h) with the following:

  1. Remove unused FONcByte.h and FONcByte.cc.
  2. BES key update: 1) Initialize the default BES key values. 2) Remove an unused BES key. 3) Change a BES key to correct name, type. 4) Update the corresponding configuration files.
  3. Largely clean up the two most important source code files: FONcArray.cc and FONcTransform.cc. Reduce the code complexity by adding new methods.
  4. Reduce memory leaks when an exception occurs.
  5. Clean up comments.
  6. Remove unused code blocks and methods.
  7. Update some baseline files.

Tasks

  • Ticket exists and is linked in title
  • Tests added/updated
  • Dead code removed
  • No TODOs added

…y leaks when an exception occurs. 2) correct a typo for NDEBUG 3) Reduce potential memory leaks for scalar and array data.
…he possible leaking when an exception occurs.
…n other platforms and with h5dump. Verify this is the case. So update the file.
… the string array handling when the number of the element of the fastest changing dimension is 1.
…umbers. Also update the testsuite. The original testing file contains wrong attribute values.
…o UseContiguousStorage since the chunk size is adjusted dynamically for many cases. Also remove the unused BytetoShort keys. 3) Also update the configure files.

@jgallagher59701 jgallagher59701 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two suggestions, but if those don't make sense, it can be merged as is. Thanks.

Comment thread modules/fileout_netcdf/FONcArray.cc
Comment thread modules/fileout_netcdf/FONcInt64.cc Outdated
@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

@kyang2014
kyang2014 merged commit 72f3ac2 into master Aug 11, 2026
7 of 8 checks passed
@kyang2014
kyang2014 deleted the hyrax-2005 branch August 11, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants