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

fix failing DGMultiMesh and Compressible Navier-Stokes convergence tests #1728

Merged
merged 5 commits into from
Nov 11, 2023

Conversation

jlchan
Copy link
Contributor

@jlchan jlchan commented Nov 10, 2023

See #1708 (comment).

Also #1709 and #1708

Copy link
Contributor

Review checklist

This checklist is meant to assist creators of PRs (to let them know what reviewers will typically look for) and reviewers (to guide them in a structured review process). Items do not need to be checked explicitly for a PR to be eligible for merging.

Purpose and scope

  • The PR has a single goal that is clear from the PR title and/or description.
  • All code changes represent a single set of modifications that logically belong together.
  • No more than 500 lines of code are changed or there is no obvious way to split the PR into multiple PRs.

Code quality

  • The code can be understood easily.
  • Newly introduced names for variables etc. are self-descriptive and consistent with existing naming conventions.
  • There are no redundancies that can be removed by simple modularization/refactoring.
  • There are no leftover debug statements or commented code sections.
  • The code adheres to our conventions and style guide, and to the Julia guidelines.

Documentation

  • New functions and types are documented with a docstring or top-level comment.
  • Relevant publications are referenced in docstrings (see example for formatting).
  • Inline comments are used to document longer or unusual code sections.
  • Comments describe intent ("why?") and not just functionality ("what?").
  • If the PR introduces a significant change or new feature, it is documented in NEWS.md.

Testing

  • The PR passes all tests.
  • New or modified lines of code are covered by tests.
  • New or modified tests run in less then 10 seconds.

Performance

  • There are no type instabilities or memory allocations in performance-critical parts.
  • If the PR intent is to improve performance, before/after time measurements are posted in the PR.

Verification

  • The correctness of the code was verified using appropriate tests.
  • If new equations/methods are added, a convergence test has been run and the results
    are posted in the PR.

Created with ❤️ by the Trixi.jl community.

Copy link
Member

@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 a lot! There seems to be another instance: https://github.com/trixi-framework/Trixi.jl/actions/runs/6825685433/job/18564059148?pr=1728#step:7:5266

The formatting tests fails, too

@jlchan
Copy link
Contributor Author

jlchan commented Nov 10, 2023

Caught a few more instances of test failures. Lets wait to see how CI goes, and I'll ping you when tests pass agan

Copy link
Member

@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.

Great, thanks!

@jlchan jlchan linked an issue Nov 10, 2023 that may be closed by this pull request
Copy link

codecov bot commented Nov 10, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b1b300e) 67.32% compared to head (170d0f8) 96.20%.
Report is 1 commits behind head on v0.6-dev.

Additional details and impacted files
@@              Coverage Diff              @@
##           v0.6-dev    #1728       +/-   ##
=============================================
+ Coverage     67.32%   96.20%   +28.88%     
=============================================
  Files           423      424        +1     
  Lines         34120    34246      +126     
=============================================
+ Hits          22969    32945     +9976     
+ Misses        11151     1301     -9850     
Flag Coverage Δ
unittests 96.20% <ø> (+28.88%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
.../p4est_2d_dgsem/elixir_navierstokes_convergence.jl 100.00% <ø> (+100.00%) ⬆️
...s/tree_2d_dgsem/elixir_navierstokes_convergence.jl 100.00% <ø> (+100.00%) ⬆️

... and 204 files with indirect coverage changes

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

@jlchan jlchan changed the title fix failing DGMultiMesh test fix failing DGMultiMesh and Compressible Navier-Stokes convergence tests Nov 11, 2023
@jlchan jlchan requested a review from ranocha November 11, 2023 03:35
@jlchan
Copy link
Contributor Author

jlchan commented Nov 11, 2023

Looks like the failing CNS tests were due to an issue with the formatting PR #1531. Some code in the convergence test source terms was removed!

@sloede
Copy link
Member

sloede commented Nov 11, 2023

Looks like the failing CNS tests were due to an issue with the formatting PR #1531. Some code in the convergence test source terms was removed!

Great catch! Did you check the other NSE manufactured solution tests as well? And did you verify that the EOC is correct?

I wonder if, for those elixirs with the elaborately formatted manufactured solution by @andrewwinters5000, we should just back the original code and put it in #! format: off and #! format: on guards to prevent re-formatting?

@andrewwinters5000
Copy link
Member

Hmm, it is odd to me that the formatter would straight-up delete code. That seems like a separate thing to worry about. The source term from a manufactured solution is almost always complicated with lots of terms (formatted or not). I admit the formatting on the working version of the convergence elixir is strange ( it looks nice in my old Fortran code I promise :) ), but keeping it for the sake of ease that the test pass works for me.

@JoshuaLampert
Copy link
Member

I don't think the formatter did that, but the manual formatting, e.g., here.

@jlchan
Copy link
Contributor Author

jlchan commented Nov 11, 2023

I don't think the formatter did that, but the manual formatting, e.g., here.

Thanks for catching that!

All tests pass, I'll go ahead and merge this.

@jlchan jlchan merged commit 342e99e into trixi-framework:v0.6-dev Nov 11, 2023
33 checks passed
@ranocha
Copy link
Member

ranocha commented Nov 11, 2023

Thanks a lot!

ranocha pushed a commit that referenced this pull request Nov 11, 2023
…tests (#1728)

* fix failing test

* more fixes

* formatting

* fix dropped part of source terms

* fix p4est parabolic
ranocha added a commit that referenced this pull request Nov 11, 2023
…tests (#1728) (#1732)

* fix failing test

* more fixes

* formatting

* fix dropped part of source terms

* fix p4est parabolic

Co-authored-by: Jesse Chan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate CI failures of Navier-Stokes convergence tests
5 participants