Skip to content

Commit

Permalink
add cache
Browse files Browse the repository at this point in the history
  • Loading branch information
LasNikas committed Nov 19, 2024
1 parent eb30b21 commit 78a90eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 76 deletions.
72 changes: 0 additions & 72 deletions examples/fluid/refinement_2d.jl

This file was deleted.

11 changes: 7 additions & 4 deletions src/schemes/fluid/entropically_damped_sph/system.jl
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,15 @@ function EntropicallyDampedSPHSystem(initial_condition, smoothing_kernel,

cache = create_cache_density(initial_condition, density_calculator)
cache = (; create_cache_edac(initial_condition, transport_velocity)..., cache...)
cache = (;
create_cache_refinement(initial_condition, particle_refinement,
smoothing_length)..., cache...)

return EntropicallyDampedSPHSystem(initial_condition, mass, density_calculator,
smoothing_kernel, smoothing_length, sound_speed,
viscosity, nu_edac, acceleration_, nothing,
pressure_acceleration, transport_velocity,
source_terms, buffer, particle_refinement, cache)
smoothing_kernel, sound_speed, viscosity, nu_edac,
acceleration_, nothing, pressure_acceleration,
transport_velocity, source_terms, buffer,
particle_refinement, cache)
end

function Base.show(io::IO, system::EntropicallyDampedSPHSystem)
Expand Down

0 comments on commit 78a90eb

Please sign in to comment.