Skip to content

Feature: Add Iteration Wall-Clock Timing (ITER_TIME)#2774

Open
Soumyadipta-Banerjee wants to merge 2 commits intosu2code:developfrom
Soumyadipta-Banerjee:feature/iteration_timing
Open

Feature: Add Iteration Wall-Clock Timing (ITER_TIME)#2774
Soumyadipta-Banerjee wants to merge 2 commits intosu2code:developfrom
Soumyadipta-Banerjee:feature/iteration_timing

Conversation

@Soumyadipta-Banerjee
Copy link
Copy Markdown

Proposed Changes

This pull request introduces the ITER_TIME field, which prints the physical wall-clock time elapsed during the inner iteration step as an optional diagnostic column.

  • Uses SU2_MPI::Wtime() synchronously across ranks to capture precise delta times between iteration steps.
  • Designed as an opt-in metric via SCREEN_OUTPUT or HISTORY_OUTPUT configuration properties. It does not clutter the default console arrays, protecting the TestCases baseline reference setups in the CI pipeline.
  • Handles padding organically aligned to ScreenOutputFormat::FIXED to retain the tight aesthetic tracking without jitter.

Related Work

N/A

PR Checklist

Put an X by all that apply. You can fill this out after submitting the PR. If you have any questions, don't hesitate to ask! We want to help. These are a guide for you to know what the reviewers will be looking for in your contribution.

  • I am submitting my contribution to the develop branch.
  • My contribution generates no new compiler warnings (try with --warnlevel=3 when using meson).
  • My contribution is commented and consistent with SU2 style (https://su2code.github.io/docs_v7/Style-Guide/).
  • I used the pre-commit hook to prevent dirty commits and used pre-commit run --all to format old commits.
  • I have added a test case that demonstrates my contribution, if necessary.
  • I have updated appropriate documentation (Tutorials, Docs Page, config_template.cpp), if necessary.

Comment on lines +2092 to +2093
/// DESCRIPTION: The current iteration calculation time.
AddHistoryOutput("ITER_TIME", "Time(s)", ScreenOutputFormat::FIXED, "ITER", "Time per iteration (s)");
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.

Put it together, and in the same group as WALL_TIME

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants