Skip to content

Comments

Add APPEND mode to exodusIIcpp#86

Merged
andrsd merged 1 commit intomainfrom
append
Feb 22, 2026
Merged

Add APPEND mode to exodusIIcpp#86
andrsd merged 1 commit intomainfrom
append

Conversation

@andrsd
Copy link
Owner

@andrsd andrsd commented Feb 22, 2026

Implements support for opening existing ExodusII files in append mode to add new time steps to an existing file. This is useful for resuming simulations and continuing to write output.

Changes:

  • Add FileAccess::APPEND enum value
  • Add File::append() method that uses ex_open(..., EX_WRITE, ...)
  • Update File constructor to handle APPEND mode
  • Update init() to allow reading metadata in APPEND mode
  • Expose append() in Python bindings
  • Add comprehensive test that verifies appending time steps works correctly

Co-Authored-By: Claude Haiku 4.5 noreply@anthropic.com

Implements support for opening existing ExodusII files in append mode to add new time steps to an existing file. This is useful for resuming simulations and continuing to write output.

Changes:
- Add FileAccess::APPEND enum value
- Add File::append() method that uses ex_open(..., EX_WRITE, ...)
- Update File constructor to handle APPEND mode
- Update init() to allow reading metadata in APPEND mode
- Expose append() in Python bindings
- Add comprehensive test that verifies appending time steps works correctly

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@andrsd andrsd added the feat New feature or request label Feb 22, 2026
@andrsd andrsd self-assigned this Feb 22, 2026
@andrsd andrsd added the feat New feature or request label Feb 22, 2026
@andrsd andrsd merged commit 2848471 into main Feb 22, 2026
6 checks passed
@andrsd andrsd deleted the append branch February 22, 2026 13:47
@codecov
Copy link

codecov bot commented Feb 22, 2026

Codecov Report

❌ Patch coverage is 98.07692% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 99.71%. Comparing base (55bdffc) to head (0da9904).
⚠️ Report is 8 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/file.cpp 88.88% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #86      +/-   ##
==========================================
- Coverage   99.84%   99.71%   -0.14%     
==========================================
  Files          13       13              
  Lines         654      705      +51     
==========================================
+ Hits          653      703      +50     
- Misses          1        2       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant