trixi-framework / trixi-framework/TrixiParticles.jl
Non-public API is used in sampling example without comment
Open
@LasNikas is already working on this.
Since Jun 26, 2025.
- Dominant language
- Julia
- Stars
- 83
- Forks
- 24
- Avg merge
- 8d 18h
- Merged PRs (30d)
- 3
Description
The complex_shape_2d.jl uses
shape_sampled = ComplexShape(geometry; particle_spacing, density=1.0,
store_winding_number=true,
point_in_geometry_algorithm)
where store_winding_number is not public API. I just copied this code and was wondering why the packing didn't work. The reason is that with this kwarg set to true, a NamedTuple is returned instead of an InitialCondition. This is very confusing.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.