Skip to content

Commit 6a83b83

Browse files
committed
fix tests again
1 parent 1188a9a commit 6a83b83

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/examples/gpu.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,13 @@ end
178178
clip_negative_pressure=true),
179179
"WCSPH with ViscosityAdami" => (
180180
# from 0.02*10.0*1.2*0.05/8
181-
viscosity=ViscosityAdami(nu=0.0015f0),),
181+
viscosity_fluid=ViscosityAdami(nu=0.0015f0),),
182182
"WCSPH with ViscosityMorris" => (
183183
# from 0.02*10.0*1.2*0.05/8
184-
viscosity=ViscosityMorris(nu=0.0015f0),),
184+
viscosity_fluid=ViscosityMorris(nu=0.0015f0),),
185185
"WCSPH with ViscosityAdami and SummationDensity" => (
186186
# from 0.02*10.0*1.2*0.05/8
187-
viscosity=ViscosityAdami(nu=0.0015f0),
187+
viscosity_fluid=ViscosityAdami(nu=0.0015f0),
188188
fluid_density_calculator=SummationDensity(),
189189
maxiters=38, # 38 time steps on CPU
190190
clip_negative_pressure=true),
@@ -205,15 +205,15 @@ end
205205
smoothing_kernel,
206206
smoothing_length,
207207
sound_speed,
208-
viscosity=viscosity,
208+
viscosity=viscosity_fluid,
209209
density_calculator=ContinuityDensity(),
210210
acceleration=(0.0,
211211
-gravity))),
212212
"EDAC with SummationDensity" => (fluid_system=EntropicallyDampedSPHSystem(tank.fluid,
213213
smoothing_kernel,
214214
smoothing_length,
215215
sound_speed,
216-
viscosity=viscosity,
216+
viscosity=viscosity_fluid,
217217
density_calculator=SummationDensity(),
218218
acceleration=(0.0,
219219
-gravity)),)

test/validation/validation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
if Sys.ARCH === :aarch64
5151
# MacOS ARM produces slightly different pressure values than x86.
5252
# Note that pressure values are in the order of 1e5.
53-
@test isapprox(error_edac_P1, 0, atol=4e-6)
53+
@test isapprox(error_edac_P1, 0, atol=5e-6)
5454
@test isapprox(error_edac_P2, 0, atol=4e-11)
5555
@test isapprox(error_wcsph_P1, 0, atol=400.0)
5656
@test isapprox(error_wcsph_P2, 0, atol=0.03)

0 commit comments

Comments
 (0)