Skip to content

Commit 9d93faf

Browse files
authored
Fix tests (#133)
* fix tests * cleanup * Update CI to use Julia version 1.11
1 parent a07e688 commit 9d93faf

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
version:
4444
# Don't use 'min' version, which will ignore hotfixes, i.e. 1.10.0 will be used instead of e.g. 1.10.8.
4545
- '1.10'
46-
- '1' # the latest stable 1.x release
46+
- '1.11' # the latest stable 1.x release
4747
os:
4848
- ubuntu-latest
4949
- windows-latest
@@ -71,20 +71,20 @@ jobs:
7171
with:
7272
annotate: true
7373
# Only run coverage in one Job (Ubuntu and latest Julia version)
74-
coverage: ${{ matrix.os == 'ubuntu-latest' && matrix.version == '1' }}
74+
coverage: ${{ matrix.os == 'ubuntu-latest' && matrix.version == '1.11' }}
7575
env:
7676
POINTNEIGHBORS_TEST: unit
7777

7878
- name: Process coverage results
7979
# Only run coverage in one Job (Ubuntu and latest Julia version)
80-
if: matrix.os == 'ubuntu-latest' && matrix.version == '1'
80+
if: matrix.os == 'ubuntu-latest' && matrix.version == '1.11'
8181
uses: julia-actions/julia-processcoverage@v1
8282
with:
8383
directories: src,test
8484

8585
- name: Upload coverage report to Codecov
8686
# Only run coverage in one Job (Ubuntu and latest Julia version)
87-
if: matrix.os == 'ubuntu-latest' && matrix.version == '1'
87+
if: matrix.os == 'ubuntu-latest' && matrix.version == '1.11'
8888
uses: codecov/codecov-action@v5
8989
with:
9090
files: lcov.info

benchmarks/smoothed_particle_hydrodynamics.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ using TrixiParticles
33
using BenchmarkTools
44

55
# Create a dummy semidiscretization type to be able to use a specific neighborhood search
6-
struct DummySemidiscretization{N, P}
6+
struct DummySemidiscretization{N, P, IT}
77
neighborhood_search :: N
88
parallelization_backend :: P
9+
integrate_tlsph :: IT
910
end
1011

1112
@inline function PointNeighbors.parallel_foreach(f, iterator, semi::DummySemidiscretization)
@@ -86,7 +87,7 @@ function __benchmark_wcsph_inner(neighborhood_search, initial_condition, state_e
8687

8788
system = PointNeighbors.Adapt.adapt(parallelization_backend, fluid_system)
8889
nhs = PointNeighbors.Adapt.adapt(parallelization_backend, neighborhood_search)
89-
semi = DummySemidiscretization(nhs, parallelization_backend)
90+
semi = DummySemidiscretization(nhs, parallelization_backend, true)
9091

9192
v = PointNeighbors.Adapt.adapt(parallelization_backend,
9293
vcat(initial_condition.velocity,
@@ -125,7 +126,7 @@ function benchmark_tlsph(neighborhood_search, coordinates;
125126

126127
solid_system = TotalLagrangianSPHSystem(solid, smoothing_kernel, smoothing_length,
127128
material.E, material.nu)
128-
semi = DummySemidiscretization(neighborhood_search, parallelization_backend)
129+
semi = DummySemidiscretization(neighborhood_search, parallelization_backend, true)
129130

130131
v = copy(solid.velocity)
131132
u = copy(solid.coordinates)

0 commit comments

Comments
 (0)