Skip to content

Commit f25b0ab

Browse files
github-actions[bot]CompatHelper Juliaefaulhaber
authored
CompatHelper: bump compat for TrixiParticles to 0.5 for package test, (keep existing compat) (#155)
* CompatHelper: bump compat for TrixiParticles to 0.5 for package test, (keep existing compat) * Update test/Project.toml --------- Co-authored-by: CompatHelper Julia <compathelper_noreply@julialang.org> Co-authored-by: Erik Faulhaber <44124897+efaulhaber@users.noreply.github.com>
1 parent 7a29244 commit f25b0ab

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

benchmarks/smoothed_particle_hydrodynamics.jl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,11 @@ function __benchmark_wcsph_inner(neighborhood_search, initial_condition, state_e
9292
smoothing_kernel = WendlandC2Kernel{ndims(neighborhood_search)}()
9393
end
9494

95-
fluid_system = WeaklyCompressibleSPHSystem(initial_condition, ContinuityDensity(),
95+
fluid_system = WeaklyCompressibleSPHSystem(initial_condition;
96+
density_calculator = ContinuityDensity(),
9697
state_equation, smoothing_kernel,
97-
smoothing_length, viscosity = viscosity,
98-
density_diffusion = density_diffusion)
98+
smoothing_length, viscosity,
99+
density_diffusion)
99100

100101
system = PointNeighbors.Adapt.adapt(parallelization_backend, fluid_system)
101102

@@ -140,8 +141,9 @@ function benchmark_tlsph(neighborhood_search, coordinates;
140141
smoothing_kernel = WendlandC2Kernel{ndims(neighborhood_search)}()
141142
end
142143

143-
solid_system = TotalLagrangianSPHSystem(solid, smoothing_kernel, smoothing_length,
144-
material.E, material.nu)
144+
solid_system = TotalLagrangianSPHSystem(solid; smoothing_kernel, smoothing_length,
145+
young_modulus = material.E,
146+
poisson_ratio = material.nu)
145147
semi = DummySemidiscretization(neighborhood_search, parallelization_backend, true)
146148

147149
v = copy(solid.velocity)

test/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ TrixiTest = "0a316866-cbd0-4425-8bcb-08103b2c1f26"
1010
BenchmarkTools = "1"
1111
Plots = "1"
1212
Test = "1"
13-
TrixiParticles = "0.4"
13+
TrixiParticles = "0.5"
1414
TrixiTest = "0.2"

0 commit comments

Comments
 (0)