Skip to content

Conversation

@svchb
Copy link
Collaborator

@svchb svchb commented Aug 13, 2025

Non-breaking part of removing the kernel from the boundary.

@svchb svchb requested review from LasNikas and efaulhaber August 13, 2025 14:42
@codecov
Copy link

codecov bot commented Aug 13, 2025

Codecov Report

❌ Patch coverage is 33.33333% with 42 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.88%. Comparing base (16bbe77) to head (925f30a).

Files with missing lines Patch % Lines
src/general/corrections.jl 0.00% 25 Missing ⚠️
src/general/system.jl 23.07% 10 Missing ⚠️
src/schemes/fluid/pressure_acceleration.jl 0.00% 4 Missing ⚠️
src/general/density_calculators.jl 80.00% 2 Missing ⚠️
src/general/semidiscretization.jl 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #880      +/-   ##
==========================================
- Coverage   70.96%   70.88%   -0.08%     
==========================================
  Files         108      108              
  Lines        7047     7059      +12     
==========================================
+ Hits         5001     5004       +3     
- Misses       2046     2055       +9     
Flag Coverage Δ
unit 70.88% <33.33%> (-0.08%) ⬇️

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.

@svchb svchb marked this pull request as draft August 18, 2025 11:14
@svchb svchb marked this pull request as ready for review August 21, 2025 14:28
@svchb
Copy link
Collaborator Author

svchb commented Aug 21, 2025

@efaulhaber dam_break_2d with float32 fails with allocations. I don't know why?

@svchb
Copy link
Collaborator Author

svchb commented Aug 26, 2025

/run-gpu-tests

@svchb svchb requested a review from efaulhaber September 3, 2025 07:26
@svchb
Copy link
Collaborator Author

svchb commented Sep 3, 2025

/run-gpu-tests

@svchb svchb self-assigned this Sep 3, 2025
@svchb svchb added the enhancement New feature or request label Sep 3, 2025
function inner_compute_correction_values!(system::BoundarySystem,
neighbor_system::BoundarySystem, semi, u_ode,
v_ode, system_coords)
# This is not needed
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not?

  1. What about open boundaries?
  2. Why ignore boundary particles? What about boundary model SummationDensity? Then the sum is computed over all neighbors (including boundary neighbors), and if we want to use a corrected kernel, why should boundary neighbors be ignored?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. OpenBoundarySPHSystem is not a BoundarySystem
  2. This requires a lot of changes for a feature that is not used much :S. I also didn't get around doing the tests...

boundary_particle_spacing=particle_spacing,
smoothing_length=smoothing_length,
boundary_density_calculator=SummationDensity(),
boundary_density_calculator=fluid_density_calculator,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? I thought the point of the test was to have a SummationDensity boundary.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of the time we use the same density calculators for both the boundary and the fluid.
The test still has summation_density for both as a test.

# Some correction methods require very small time steps at the beginning of the simulation.
# An adaptive time integrator makes this easier and faster.
sol = solve(ode, RDPK3SpFSAL35(), save_everystep=false, callback=callbacks)
sol = solve(ode, RDPK3SpFSAL35(), dt=1e-8, save_everystep=false, callback=callbacks)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this extremely small initial time step?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is flawed it was already broken on main.

@efaulhaber efaulhaber added this to the 0.4 milestone Sep 5, 2025
@svchb svchb removed this from the 0.4 milestone Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants