Skip to content

history file is always overwritten #3037

Open

Description

@bigfooted

It would be nice to have a config option that would allow to append or overwrite the history file, like we do for the restart and volume files: WRT_HISTORY_OVERWRITE= YES

Activity

  1. PraptiPatra commented on Nov 26, 2026

    @PraptiPatra

    Hi, I'd like to work on this if it's still open. I saw #3042 was closed.

    Before I start, a quick question on what WRT_HISTORY_OVERWRITE= NO should do. The existing WRT_RESTART/SURFACE/VOLUME_OVERWRITE= NO options add the iteration number to the file name, but the issue mentions appending, so my plan is:

    YES (default): same as now, history.csv is overwritten.
    NO: open the existing history file with ios::app and add the new rows, without writing the header again.

    Is that what you had in mind? And if the columns differ from the existing file (e.g. HISTORY_OUTPUT was changed between runs), should it stop with an error, or just print a warning?

  2. bigfooted commented on Nov 26, 2026

    @bigfooted
    ContributorAuthor

    Go ahead, make sure to follow the template for PRs or else we will mark it as spam/automatic ai generated. When the headers do not match throw an error.

  3. added a commit that references this issue on Nov 28, 2026
    1c352db
  4. PraptiPatra commented on Nov 28, 2026

    @PraptiPatra

    Thanks! I've opened su2code/SU2#3046 for this. With NO it appends to the existing history file, and it stops with an error if the headers don't match, as you suggested. Happy to make changes or add a regression test if needed.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions