Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failures on Julia master #492

Closed
fredrikekre opened this issue Sep 27, 2022 · 3 comments
Closed

Test failures on Julia master #492

fredrikekre opened this issue Sep 27, 2022 · 3 comments

Comments

@fredrikekre
Copy link
Member

Grid topology: Error During Test at /home/runner/work/Ferrite.jl/Ferrite.jl/test/test_grid_dofhandler_vtk.jl:277
  Test threw exception
  Expression: all(iszero, topology.vertex_neighbor)
  MethodError: reducing over an empty collection is not allowed; consider supplying `init` to the reducer
  Stacktrace:
   [1] _mapreduce(f::typeof(iszero), op::Function, #unused#::IndexCartesian, A::SparseMatrixCSC{Ferrite.EntityNeighborhood, Int64})
     @ SparseArrays /opt/hostedtoolcache/julia/nightly/x64/share/julia/stdlib/v1.9/SparseArrays/src/sparsematrix.jl:2172
   [2] _all(f::Function, A::SparseMatrixCSC{Ferrite.EntityNeighborhood, Int64}, #unused#::Colon)
     @ SparseArrays /opt/hostedtoolcache/julia/nightly/x64/share/julia/stdlib/v1.9/SparseArrays/src/sparsematrix.jl:2194

Likely due to upgraded SparseArrays in JuliaLang/julia#46790, but not sure if the problem is there or here.

@koehlerson
Copy link
Member

julia> using Ferrite

julia> hexgrid = generate_grid(Hexahedron,(2,2,1));

julia> topology = ExclusiveTopology(hexgrid);

julia> all(iszero,topology.vertex_neighbor)
true

julia> topology.vertex_neighbor
0×0 SparseArrays.SparseMatrixCSC{Ferrite.EntityNeighborhood, Int64} with 0 stored entries

Is this a behavior change for 0x0 matrices?

@KristofferC
Copy link
Collaborator

Any idea of the exact change that caused this?

@fredrikekre
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants