Skip to content

Commit

Permalink
Revert "rm cached"
Browse files Browse the repository at this point in the history
This reverts commit ea026e5.
  • Loading branch information
LasNikas committed Nov 7, 2024
1 parent 5ed489d commit e4500cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/schemes/fluid/entropically_damped_sph/system.jl
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,14 @@ function create_cache_edac(initial_condition, ::TransportVelocityAdami)
return (; pressure_average, neighbor_counter, update_callback_used)
end

function create_cache_edac_particle_refinement(initial_condition, ::Nothing)
return (;)
end

function create_cache_edac_particle_refinement(initial_condition, ::ParticleRefinement)
return (;)
end

@inline function v_nvariables(system::EntropicallyDampedSPHSystem)
return v_nvariables(system, system.density_calculator)
end
Expand Down
2 changes: 1 addition & 1 deletion src/schemes/fluid/transport_velocity.jl
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ end
momentum_velocity_b = current_velocity(v_neighbor_system, neighbor_system, neighbor)
advection_velocity_b = advection_velocity(v_neighbor_system, neighbor_system, neighbor)

factor_a = beta_correction(system, particle_refinement, particle) / rho_a
factor_a = beta_correction(particle_system, particle_refinement, particle) / rho_a
factor_b = beta_correction(neighbor_system, particle_refinement, neighbor) / rho_b

A_a = factor_a * momentum_velocity_a * (advection_velocity_a - momentum_velocity_a)'
Expand Down

0 comments on commit e4500cd

Please sign in to comment.