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

Implement set_dofs! method for tuple inputs #383

Open
mforets opened this issue Jun 30, 2023 · 0 comments
Open

Implement set_dofs! method for tuple inputs #383

mforets opened this issue Jun 30, 2023 · 0 comments
Labels
interfaces meshes meshes related issues

Comments

@mforets
Copy link
Collaborator

mforets commented Jun 30, 2023

Examples include set_dofs!(msh, (:u, :θ), (3, 3)) such as a frame element, for which we want the indices to be continuous for the same element instead of

set_dofs!(msh, :u, 3) 
set_dofs!(msh, , 3) 
julia> collect(dofs(msh))
5-element Vector{Dictionaries.Dictionary{Symbol, Vector{Int64}}}:
 {:u = [1, 2, 3],  = [16, 17, 18]}
 {:u = [4, 5, 6],  = [19, 20, 21]}
 {:u = [7, 8, 9],  = [22, 23, 24]}
 {:u = [10, 11, 12],  = [25, 26, 27]}
 {:u = [13, 14, 15],  = [28, 29, 30]}

would have [1,2,3], [4,5,6] for the first element, etc.

@mvanzulli mvanzulli added interfaces meshes meshes related issues labels Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interfaces meshes meshes related issues
Projects
None yet
Development

No branches or pull requests

2 participants