Skip to content

Commit

Permalink
TL: formating for runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
tlunet committed Jul 18, 2023
1 parent 4735fb6 commit cd56721
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/07_pararealSpeedup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
fig.show()

time = parareal.getRuntime(N, K, N, schedulerType=schedulerType)
print(f"Runtime = {time}")
print(f"Runtime = {time:.1f}")
2 changes: 1 addition & 1 deletion scripts/08_pararealFCFSpeedup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
fig.show()

time = parareal_fcf.getRuntime(N, K, N, schedulerType=schedulerType)
print(f"Runtime = {time}")
print(f"Runtime = {time:.1f}")
2 changes: 1 addition & 1 deletion web_apps/pararealFCFSchedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def compute(self, response_data: dict[str, Any] | None) -> ResponseStages:
# === Response ===

plot_stage = s1_plot.copy()
plot_stage.title += f" (runtime = {time})"
plot_stage.title += f" (runtime = {time:.1f})"
plot_stage.plot = fig.to_json()
r.add_plot_stage(plot_stage)

Expand Down
2 changes: 1 addition & 1 deletion web_apps/pararealSchedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def compute(self, response_data: dict[str, Any] | None) -> ResponseStages:
# === Response ===

plot_stage = s1_plot.copy()
plot_stage.title += f" (runtime = {time})"
plot_stage.title += f" (runtime = {time:.1f})"
plot_stage.plot = fig.to_json()
r.add_plot_stage(plot_stage)

Expand Down

0 comments on commit cd56721

Please sign in to comment.