Skip to content

Commit fcdcc49

Browse files
committed
Fix NaNs in v0
1 parent 2b4de15 commit fcdcc49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/schemes/boundary/system.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ end
290290

291291
# For BoundaryModelDummyParticles with ContinuityDensity, this needs to be 1.
292292
# For all other models and density calculators, it's irrelevant.
293-
@inline v_nvariables(system::BoundarySPHSystem) = 1
293+
@inline v_nvariables(system::BoundarySPHSystem{<:BoundaryModelDummyParticles{ContinuityDensity}}) = 1
294+
@inline v_nvariables(system::BoundarySPHSystem) = 0
294295
@inline v_nvariables(system::BoundaryDEMSystem) = 0
295296

296297
@inline function current_coordinates(u, system::Union{BoundarySPHSystem, BoundaryDEMSystem})

0 commit comments

Comments
 (0)