Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print timer of SummaryCallback in finalizer #79

Merged
merged 5 commits into from
Dec 19, 2023

Conversation

JoshuaLampert
Copy link
Owner

This way the timer of the summary callback is printed at the end of the simulation and not at the end of the last timestep.

ranocha
ranocha previously approved these changes Dec 19, 2023
Copy link
Collaborator

@ranocha ranocha left a comment

Choose a reason for hiding this comment

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

Thanks! I think

@test_nowarn summary_callback()

needs to be updated as well.

ranocha
ranocha previously approved these changes Dec 19, 2023
Copy link

codecov bot commented Dec 19, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (492f918) 96.16% compared to head (b3ea701) 96.07%.

Files Patch % Lines
src/callbacks_step/summary.jl 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #79      +/-   ##
==========================================
- Coverage   96.16%   96.07%   -0.10%     
==========================================
  Files          16       17       +1     
  Lines        1095     1095              
==========================================
- Hits         1053     1052       -1     
- Misses         42       43       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JoshuaLampert
Copy link
Owner Author

Newer versions of OrdinaryDiffEq.jl (including v6.59.3, which is needed for the finalize function to work) require Julia v1.9. Thus, the tests use Julia v1.9, now.

@JoshuaLampert JoshuaLampert enabled auto-merge (squash) December 19, 2023 12:23
@ranocha
Copy link
Collaborator

ranocha commented Dec 19, 2023

If you update the IC tests to Julia v1.9, you should also update the Julia requirement in

@JoshuaLampert
Copy link
Owner Author

Done in 1107493

@JoshuaLampert
Copy link
Owner Author

If you update the IC tests to Julia v1.9, you should also update the Julia requirement

This is not the case for Trixi.jl. Should this be adapted there, too?

Copy link
Collaborator

@ranocha ranocha left a comment

Choose a reason for hiding this comment

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

Sorry, I was too fast. There are other references to v1.8 of Julia, e.g.

DispersiveShallowWater.jl works with Julia v1.8 and newer. DispersiveShallowWater.jl is a registered Julia package. Therefore, you can install it by executing the following commands from the Julia REPL

@ranocha
Copy link
Collaborator

ranocha commented Dec 19, 2023

If you update the IC tests to Julia v1.9, you should also update the Julia requirement

This is not the case for Trixi.jl. Should this be adapted there, too?

No, we explicitly keep some tests with Julia v1.8 in the Trixi.jl repo

https://github.com/trixi-framework/Trixi.jl/blob/b5d0a50214abb9b33dc4a4859a4a12c6e3149cb1/.github/workflows/ci.yml#L83-L86

@JoshuaLampert
Copy link
Owner Author

Ah ok, thanks!

@JoshuaLampert
Copy link
Owner Author

JoshuaLampert commented Dec 19, 2023

Sorry, I was too fast. There are other references to v1.8 of Julia, e.g.

Done in b3ea701 and thanks for the hint.

Copy link
Collaborator

@ranocha ranocha left a comment

Choose a reason for hiding this comment

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

Thanks!

@JoshuaLampert JoshuaLampert merged commit 47c8409 into main Dec 19, 2023
7 of 9 checks passed
@JoshuaLampert JoshuaLampert deleted the finalize-summarycallback branch December 19, 2023 12:44
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