Skip to content

Complete mixed kernel-gradient correction - #1288

Draft
svchb wants to merge 5 commits into
trixi-framework:mainfrom
svchb:fix/mixed-kernel-gradient-correction
Draft

Complete mixed kernel-gradient correction#1288
svchb wants to merge 5 commits into
trixi-framework:mainfrom
svchb:fix/mixed-kernel-gradient-correction

Conversation

@svchb

@svchb svchb commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • compose kernel and matrix correction caches with matching element types
  • assemble the mixed matrix from the kernel-corrected raw gradient
  • document constant and affine consistency
  • add direct-gradient, restart, EDAC, boundary, and GPU tests

Stack

Depends on #1290. This PR targets main and temporarily includes the preceding stack.

Review-only diff: svchb/TrixiParticles.jlOpen@fix/gradient-correction-lifecycle...fix/mixed-kernel-gradient-correction

Isolated layer: 5 files, 63 additions, 3 deletions.

Verification

  • complete unit suite passed
  • JuliaFormatter and git diff --check passed

@codecov

codecov Bot commented Aug 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.01170% with 41 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.49%. Comparing base (a720b1d) to head (fe0a364).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
test/examples/gpu.jl 0.00% 23 Missing ⚠️
src/schemes/structure/rigid_body/system.jl 46.15% 7 Missing ⚠️
...c/schemes/structure/total_lagrangian_sph/system.jl 57.14% 6 Missing ⚠️
src/general/corrections.jl 85.71% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1288      +/-   ##
==========================================
+ Coverage   90.39%   90.49%   +0.10%     
==========================================
  Files         138      144       +6     
  Lines       11322    11633     +311     
==========================================
+ Hits        10234    10527     +293     
- Misses       1088     1106      +18     
Flag Coverage Δ
total 90.50% <88.01%> (+0.10%) ⬆️
unit 78.86% <85.38%> (+1.37%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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.

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.

1 participant