Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
svchb committed Jul 11, 2024
1 parent a5ea05e commit ff5f568
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/schemes/boundary/system.jl
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,6 @@ function restart_with!(system::BoundarySPHSystem{<:BoundaryModelDummyParticles{C
return system
end

@inline viscosity_model(system::BoundarySPHSystem, neighbor_system) = system.boundary_model.viscosity

function calculate_dt(v_ode, u_ode, cfl_number, system::BoundarySystem)
return Inf
end
2 changes: 1 addition & 1 deletion src/schemes/fluid/fluid.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ end

write_v0!(v0, system, density_calculator) = v0

@inline viscosity_model(system::FluidSystem, neighbor_system) = system.viscosity
@inline viscosity_model(system::FluidSystem, neighbor_system) = neighbor_system.viscosity
@inline viscosity_model(system::FluidSystem, neighbor_system::BoundarySystem) = neighbor_system.boundary_model.viscosity

function compute_density!(system, u, u_ode, semi, ::ContinuityDensity)
Expand Down
2 changes: 1 addition & 1 deletion src/schemes/solid/total_lagrangian_sph/system.jl
Original file line number Diff line number Diff line change
Expand Up @@ -431,5 +431,5 @@ function cauchy_stress(system::TotalLagrangianSPHSystem)
return cauchy_stress_tensors
end

@inline viscosity_model(system::TotalLagrangianSPHSystem, neighbor_system) = system.boundary_model.viscosity
@inline viscosity_model(system::TotalLagrangianSPHSystem, neighbor_system) = neighbor_system.viscosity
@inline viscosity_model(system::FluidSystem, neighbor_system::TotalLagrangianSPHSystem) = neighbor_system.boundary_model.viscosity

0 comments on commit ff5f568

Please sign in to comment.