You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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?
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.
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.
Activity
PraptiPatra commentedon Nov 26, 2026
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?
bigfooted commentedon Nov 26, 2026
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.
Add WRT_HISTORY_OVERWRITE option to append to the history file
PraptiPatra commentedon Nov 28, 2026
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.