We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
velocity_and_density
1 parent c5784b4 commit 663afddCopy full SHA for 663afdd
1 file changed
src/schemes/fluid/weakly_compressible_sph/rhs.jl
@@ -142,6 +142,12 @@ end
142
end
143
144
@propagate_inbounds function velocity_and_density(v, system, particle)
145
+ # For other systems, fall back to the default implementation
146
+ return velocity_and_density(v, nothing, system, particle)
147
+end
148
+
149
+@propagate_inbounds function velocity_and_density(v, system::WeaklyCompressibleSPHSystem,
150
+ particle)
151
(; density_calculator) = system
152
153
return velocity_and_density(v, density_calculator, system, particle)
0 commit comments