Skip to content

Add dt_update_write_interval option - #7221

Merged
JustinRayAngus merged 2 commits into
BLAST-WarpX:developmentfrom
dpgrote:add_dt_update_write_interval
Aug 28, 2026
Merged

Add dt_update_write_interval option#7221
JustinRayAngus merged 2 commits into
BLAST-WarpX:developmentfrom
dpgrote:add_dt_update_write_interval

Conversation

@dpgrote

@dpgrote dpgrote commented Aug 28, 2026

Copy link
Copy Markdown
Member

When dt_update_interval is specified, there is the option dt_update_diagnostic_file which turns on writing the updated time size information to a diagnostic file. This adds the new option dt_update_write_interval to control when the diagnostic is written out.

This PR fixes the initialization of the diagnostic file. It now creates the file and writes the header only during WarpX initialization. Also, any existing file is overwritten except when doing a restart.

@dpgrote
dpgrote requested a review from JustinRayAngus August 28, 2026 18:59

@JustinRayAngus JustinRayAngus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks

@JustinRayAngus
JustinRayAngus merged commit c05c9f9 into BLAST-WarpX:development Aug 28, 2026
51 checks passed
@dpgrote
dpgrote deleted the add_dt_update_write_interval branch August 28, 2026 21:45
JustinRayAngus added a commit that referenced this pull request Aug 31, 2026
This PR fixes a bug from PR #7221 that results in the dt_updates file
being overwritten on a restart.
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