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

allocate_matrix with only a topology gives a bad error message #1029

Open
KristofferC opened this issue Jul 29, 2024 · 0 comments
Open

allocate_matrix with only a topology gives a bad error message #1029

KristofferC opened this issue Jul 29, 2024 · 0 comments

Comments

@KristofferC
Copy link
Collaborator

const grid = generate_grid(Hexahedron, (n, n, n))
const topology = ExclusiveTopology(grid)

const dh = DofHandler(grid)
const dh = DofHandler(grid)
add!(dh, :u, Lagrange{RefHexahedron, 2}()^3)
add!(dh, :p, Lagrange{RefHexahedron, 1}())
add!(dh, :q, DiscontinuousLagrange{RefHexahedron, 1}())
close!(dh)

allocate_matrix(dh; topology)

# ERROR: TypeError: in keyword argument interface_coupling, expected AbstractMatrix{Bool}, got a value of type Nothing
# Stacktrace:
#  [1] add_sparsity_entries!(sp::SparsityPattern, dh::DofHandler{…}, ch::Nothing; keep_constrained::Bool, coupling::Nothing, interface_coupling::Nothing, topology::ExclusiveTopology)
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

1 participant