Skip to content

Fix example complex_shape_3d.jl - #1308

Merged
LasNikas merged 8 commits into
trixi-framework:mainfrom
LasNikas:fix-example-file
Oct 22, 2026
Merged

LasNikas merged 8 commits into
trixi-framework:mainfrom
LasNikas:fix-example-file

Conversation

@LasNikas

@LasNikas LasNikas commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@LasNikas LasNikas self-assigned this Sep 2, 2026
@LasNikas LasNikas added the bug Something isn't working label Sep 2, 2026
@codecov

codecov Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.06%. Comparing base (66989f6) to head (bc8572f).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1308   +/-   ##
=======================================
  Coverage   91.06%   91.06%           
=======================================
  Files         143      143           
  Lines       11607    11607           
=======================================
  Hits        10570    10570           
  Misses       1037     1037           
Flag Coverage Δ
total 91.06% <ø> (ø)
unit 79.65% <ø> (ø)

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.

@svchb

svchb commented Sep 2, 2026 •

Copy link
Copy Markdown
Collaborator

Please add the example to the CI.

- Add smoke test for the example in `test/examples/examples.jl`.
- Load the geometry via `pkgdir` so the example also works when the
  current working directory is not the repository root (as in CI).
@svchb

svchb commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator

Addressed in b2d4cc0: added the example to the CI in test/examples/examples.jl. Also fixed the data file path in the example to use pkgdir, since Pkg.test() runs with the test directory as working directory, so the previous CWD-relative path would not have been found.

`SignedDistanceField` and its `trixi2vtk` method work with the current
API, so re-enable the SDF part that was commented out and align the
example header with what the example actually does.
The example exposes its parameters on purpose (teaching example), so
override 'file' from the test instead of changing the example. This
reverts the previous modifications of the example itself.
The kwargs removed in the example fix never existed in 'ComplexShape';
the boundary layer workflow is now 'SignedDistanceField' +
'sample_boundary' (as in 'packing_2d.jl' and the packing tutorial).
Use it in the example and assert both samplings in the CI test.
@svchb
svchb requested a review from efaulhaber September 30, 2026 15:01
@LasNikas
LasNikas enabled auto-merge (squash) October 21, 2026 13:52
@svchb

svchb commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

/run-gpu-tests

@LasNikas
LasNikas merged commit 0ff2732 into trixi-framework:main Oct 22, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants