Skip to content

Commit

Permalink
Solve some deprecation warnings (#286)
Browse files Browse the repository at this point in the history
```
┌ Warning: mpiexec() is deprecated, use the non-do-block form
│   caller = ip:0x0
└ @ Core :-1
┌ Warning: `PDiagMat(dim::Int, diag::AbstractVector{<:Real})` is deprecated, use `PDiagMat(diag)` instead.
│   caller = ip:0x0
└ @ Core :-1
```
  • Loading branch information
giordano authored Nov 15, 2024
1 parent e74ca8c commit 80ec403
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion test/models/llw2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,6 @@ end
function ParticleDA.get_covariance_observation_noise(model::LLW2dModel)
observation_dimension = ParticleDA.get_observation_dimension(model)
return PDiagMat(
observation_dimension,
[
ParticleDA.get_covariance_observation_noise(model, i, i)
for i in 1:observation_dimension
Expand Down
4 changes: 1 addition & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,5 @@ end
julia = Base.julia_cmd()
flags = ["--startup-file=no", "-q", "-t$(Base.Threads.nthreads())"]
script = joinpath(@__DIR__, file)
mpiexec() do mpiexec
@test success(run(ignorestatus(`$(mpiexec) -n 3 $(julia) $(flags) $(script)`)))
end
@test success(run(ignorestatus(`$(mpiexec()) -n 3 $(julia) $(flags) $(script)`)))
end

0 comments on commit 80ec403

Please sign in to comment.