Skip to content

Gauss-Legendre DGSEM Solver: 2D P4estMesh periodic#2847

Merged
ranocha merged 66 commits intotrixi-framework:mainfrom
DanielDoehring:GL_P4est2D_Periodic
Apr 9, 2026
Merged

Gauss-Legendre DGSEM Solver: 2D P4estMesh periodic#2847
ranocha merged 66 commits intotrixi-framework:mainfrom
DanielDoehring:GL_P4est2D_Periodic

Conversation

@DanielDoehring
Copy link
Copy Markdown
Member

@DanielDoehring DanielDoehring commented Mar 4, 2026

Convergence test advection:

####################################################################################################
l2
scalar              
error     EOC       
5.76e-05  -         
3.72e-06  3.95      
2.24e-07  4.06      
1.40e-08  4.00      
8.71e-10  4.01      

mean      4.00      
----------------------------------------------------------------------------------------------------
linf
scalar              
error     EOC       
2.99e-04  -         
1.86e-05  4.01      
1.05e-06  4.14      
7.03e-08  3.91      
4.35e-09  4.01      

mean      4.02      
----------------------------------------------------------------------------------------------------

xref #2826

@DanielDoehring DanielDoehring added the enhancement New feature or request label Mar 4, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 4, 2026

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 with its PR number.

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.

@DanielDoehring DanielDoehring changed the title Gl p4est2 d periodic Gauss-Legendre DGSEM Solver: 2D P4estMesh periodic Mar 4, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 4, 2026

Codecov Report

❌ Patch coverage is 95.79439% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.07%. Comparing base (16e465f) to head (40acf2b).
⚠️ Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
src/solvers/dgsem_p4est/dg_2d.jl 95.93% 5 Missing ⚠️
src/solvers/dgsem_p4est/containers.jl 88.89% 3 Missing ⚠️
src/meshes/p4est_mesh_view.jl 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2847      +/-   ##
==========================================
- Coverage   97.08%   97.07%   -0.00%     
==========================================
  Files         611      612       +1     
  Lines       47580    47777     +197     
==========================================
+ Hits        46189    46379     +190     
- Misses       1391     1398       +7     
Flag Coverage Δ
unittests 97.07% <95.79%> (-<0.01%) ⬇️

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

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@DanielDoehring DanielDoehring marked this pull request as draft March 14, 2026 10:37
@DanielDoehring
Copy link
Copy Markdown
Member Author

I realized I also need to compute & store now the normals at interfaces:

normal_direction = get_normal_direction(primary_direction,
contravariant_vectors,
i_primary, j_primary,
primary_element)

which cannot be inferred from the elements only. The reason why the current example works is that the mesh is effectively cartesian.

@DanielDoehring DanielDoehring marked this pull request as ready for review March 15, 2026 08:25
@DanielDoehring
Copy link
Copy Markdown
Member Author

Please ping us (Andrew, me; maybe on Slack) when you would like to get a review.

This will take some time, I need to check the GPU changes and adapt this PR. This is started with #2899

DanielDoehring and others added 5 commits April 6, 2026 09:16
Co-authored-by: Hendrik Ranocha <ranocha@users.noreply.github.com>
Co-authored-by: Hendrik Ranocha <ranocha@users.noreply.github.com>
Copy link
Copy Markdown
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

@ranocha ranocha enabled auto-merge (squash) April 6, 2026 17:09
Copy link
Copy Markdown
Member

@JoshuaLampert JoshuaLampert 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 only have one question below.

@ranocha ranocha disabled auto-merge April 9, 2026 04:17
@ranocha ranocha merged commit cd01449 into trixi-framework:main Apr 9, 2026
38 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

downstream changes affecting downstream packages enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants