-
Notifications
You must be signed in to change notification settings - Fork 112
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
format examples #1531
format examples #1531
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1531 +/- ##
===========================================
- Coverage 82.77% 72.65% -10.12%
===========================================
Files 431 431
Lines 34647 34637 -10
===========================================
- Hits 28678 25164 -3514
- Misses 5969 9473 +3504
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looked over all of the dgmulti_1d
and 2d
elixirs. A few minor comments but nothing too major.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've randomly looked at a number of files from different mesh types. Mostly, it seems like everything is as good or as bad as before, sometimes there are slight improvements
In some cases (already noted by @JoshuaLampert @SimonCan @jlchan), there exists a somewhat weird formatting with binary operators being alone on one line. This is obviously a decline in readability. However, they are fixable (by moving the binary op to the previous line). Thus, from my side there are no hard reasons to not proceed with merging this once everyone had.a chance to review (and improve) things
2e213d8
to
d038587
Compare
I updated this PR based on the recent There are some instances where the arguments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did some spot checks but nothing rang besides that, like for the test/
folder, this reformatting is unfortunately not a clear improvement for readability but rather a lateral move. I still think it is useful to do!
It would be good if maybe @JoshuaLampert or @lchristm could have a look as well, maybe also @DanielDoehring? Not at everything, of course, but at least at a few random elixirs...
Looks alright to me, we loose some "nice" formatting like coordinates_min = (-1.0, -1.0) # minimum coordinates (min(x), min(y))
coordinates_max = ( 1.0, 1.0) # maximum coordinates (max(x), max(y)) which becomes coordinates_min = (-1.0, -1.0) # minimum coordinates (min(x), min(y))
coordinates_max = (1.0, 1.0) # maximum coordinates (max(x), max(y)) but apart from that this looks fine to me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only looked at a few files (~two dozen; we have a lot of examples these days 😅) and did not find any issues. IMHO, overall the readability is not much better than before, but I think it is good that the formatting is consistent with the main code base now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Personally, I actually prefer the formatted one. |
Does someone know why some of the tests fail? Some of them even quite considerably (the actual error differs by one order of magnitude to the expected one)... We having similar issues also in other PRs, but strangely not the same tests fail. |
I have no clue... 😞 |
Since CI also fails in other PRs, I think we should go ahead and merge this PR to avoid merge conflicts with other works. Okay for you, @sloede? |
I think we should wait until all tests have run, but yes, I agree that if this is just the same errors as elsewhere, we can merge |
So for the elixirs using the error-based timestepping I remember that there where actually different errors depending on the machine. This time, I can actually reproduce the errors on my machine and we have differences for other examples using CFL-based timestepping. In principle, we should be able to find the point where things went wrong, right...? |
* Revise bounds check for MCL * Rename `idp_bounds_delta` for MCL to `mcl_bounds_delta` * Remove comment * Fix allocs (trixi-framework#1695) * Fix allocs * remove unnecessary code * rerun fmt * format * Allocation tests dgmulti 2d (trixi-framework#1698) * HLLE CEE 2D3D NonCartesian Meshes (trixi-framework#1692) * HLLE CEE 2D3D NonCartesian Meshes * format * hlle via hll * format test * format test * format * do not export hlle * Correct test vals * test values CI * Update src/equations/compressible_euler_2d.jl Co-authored-by: Hendrik Ranocha <[email protected]> * Update src/equations/compressible_euler_1d.jl Co-authored-by: Hendrik Ranocha <[email protected]> * Update src/equations/compressible_euler_2d.jl Co-authored-by: Hendrik Ranocha <[email protected]> * Update src/equations/compressible_euler_3d.jl Co-authored-by: Hendrik Ranocha <[email protected]> * Update src/equations/compressible_euler_3d.jl Co-authored-by: Hendrik Ranocha <[email protected]> * apply suggestions * additional sentence * Fix typo * typos * correct test vals --------- Co-authored-by: Hendrik Ranocha <[email protected]> * Bump crate-ci/typos from 1.16.15 to 1.16.21 (trixi-framework#1700) Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.16.15 to 1.16.21. - [Release notes](https://github.com/crate-ci/typos/releases) - [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md) - [Commits](crate-ci/typos@v1.16.15...v1.16.21) --- updated-dependencies: - dependency-name: crate-ci/typos dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Add NumFOCUS + ACTRIX to acknowledgments (trixi-framework#1697) * Add NumFOCUS + ACTRIX to acknowledgments * Try to avoid spaces * Another try to avoid gaps between images * Hopefully fix image alignment in docs * Try new logo formats * Use smaller DUBS logo and add DUBS funding statement * Add markdown-based table for logos in docs * Try another table approach * Hopefully get a layout that finally *works*... * Arrrrrrgggggghhhhh * format examples (trixi-framework#1531) * format examples * check formatting of examples in CI * update style guide * fix weird formatting * fix formatting of binary operators * format again * Update differentiable_programming.jl (trixi-framework#1704) * Format subcell elixirs * Add warning for missing bounds check for entropy limiter (MCL) --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Daniel Doehring <[email protected]> Co-authored-by: Hendrik Ranocha <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Michael Schlottke-Lakemper <[email protected]> Co-authored-by: ArseniyKholod <[email protected]>
Yes, you're right. Did some update of one of the time stepping dependencies introduce the change we see here? |
- | ||
- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting appears to have removed something crucial
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the formatter did that, but the manual formatting, e.g., here.
It would be nice if several people could review this PR, e.g., @trixi-framework/developers
TODO