Add ETA print to time-step output#1351
Conversation
Review Summary by QodoAdd ETA display and fix average time calculation
WalkthroughsDescription• Add ETA (hours:minutes:seconds) display to simulation progress output • Fix average time-per-step calculation for non-CFL time-stepping mode • Compute remaining time based on simulation progress and average step duration • Display ETA in both CFL-based and fixed time-step simulation modes Diagramflowchart LR
A["Time Step Execution"] --> B["Calculate Wall Time"]
B --> C["Update Average Time"]
C --> D["Compute ETA"]
D --> E["Print Progress with ETA"]
F["CFL Mode"] --> C
G["Fixed Time-Step Mode"] --> C
File Changes1. src/simulation/m_start_up.fpp
|
Code Review by Qodo
1. ETA output indentation wrong
|
📝 WalkthroughWalkthroughThis pull request adds estimated time remaining (ETA) display to simulation progress output and refines the wall-time averaging logic across multiple time-stepping and post-processing modules. ETA is computed and formatted as HH:MM:SS using local variables in progress print statements. The wall-time averaging calculation is modified to depend on whether CFL-based variable time stepping is enabled, with different averaging windows and reset conditions applied to each mode. Changes span four files with a total of approximately 48 additions and 13 deletions. 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: e47f0737-3eea-432c-8f47-db3514729cd3
📒 Files selected for processing (4)
src/post_process/m_start_up.fppsrc/post_process/p_main.fppsrc/simulation/m_start_up.fppsrc/simulation/m_time_steppers.fpp
Description
This PR adds an ETA printout to runtime and corrects a bug in computing the average time per step in post process. Addresses #1276
Fixes #(issue)
Type of change
AI code reviews
Reviews are not triggered automatically. To request a review, comment on the PR:
@coderabbitai review— incremental review (new changes only)@coderabbitai full review— full review from scratch/review— Qodo review/improve— Qodo code suggestions@claude full review— Claude full review (also triggers on PR open/reopen/ready)claude-full-review— Claude full review via label