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 af0ccc5 commit 061078cCopy full SHA for 061078c
1 file changed
src/schemes/fluid/weakly_compressible_sph/rhs.jl
@@ -136,6 +136,12 @@ end
136
end
137
138
@propagate_inbounds function velocity_and_density(v, system, particle)
139
+ # For other systems, fall back to the default implementation
140
+ return velocity_and_density(v, nothing, system, particle)
141
+end
142
+
143
+@propagate_inbounds function velocity_and_density(v, system::WeaklyCompressibleSPHSystem,
144
+ particle)
145
(; density_calculator) = system
146
147
return velocity_and_density(v, density_calculator, system, particle)
0 commit comments