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

Support reordering operations for Grid #832

Open
termi-official opened this issue Nov 1, 2023 · 2 comments
Open

Support reordering operations for Grid #832

termi-official opened this issue Nov 1, 2023 · 2 comments
Labels
feature good first issue Something to work on as a new contributor!

Comments

@termi-official
Copy link
Member

We should add renumber!(grid, order). This can be useful if we want to add data locality optimization strategies in the future.

@termi-official termi-official added good first issue Something to work on as a new contributor! feature labels Nov 1, 2023
@Jay-sanjay
Copy link

Hi @termi-official I would like to work on this issue, can you please tell me what kind of function renumber!( ) must be .
I see there is some things related to it here

but I am not clear what needs to be done

@termi-official
Copy link
Member Author

The idea is similar to the dof renumbering. Basically the grid has an array of cells and nodes

Ferrite.jl/src/Grid/grid.jl

Lines 316 to 317 in fe44e7f

cells::Vector{C}
nodes::Vector{Node{dim,T}}
where the cells hold indices to the node array. So the function basically has to change the node locations on the nodes array of the grid and the indices in the cells respectively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature good first issue Something to work on as a new contributor!
Projects
None yet
Development

No branches or pull requests

2 participants