-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
Fix create_submesh
by generalising sub index map creation
#2890
Merged
Merged
Changes from 97 commits
Commits
Show all changes
110 commits
Select commit
Hold shift + click to select a range
d6fa63a
Add function to compute submap indices
jpdean 07fcad6
Compute submap offset
jpdean 1e2e827
Compute submap sources
jpdean 8ab92f2
Fix type
jpdean 5343edb
Compute submap dest ranks
jpdean 6cda53f
Document
jpdean 21f5da9
Compute submap ghost indices
jpdean 027be30
Simplify
jpdean 8965bc2
Compute sub imap to imap
jpdean 9bf0137
Return imap and map
jpdean ed08b5d
Merge branch 'main' into jpdean/fix_submesh
jpdean cbf36d0
Fix typos
jpdean 2654251
Add test
jpdean 53648ba
Use new create submap in topology creation
jpdean b6723c9
Use new create submap in geometry creation
jpdean 6fcdaba
format
jpdean b14939b
Start on posisble fix
jpdean 490efe1
Fix computation of global index when vertices change owner
jpdean ff8426a
Mention indices must be sorted
jpdean e105934
Fix computaion of local indices
jpdean 070f995
Add temporary fix
jpdean f36d0d8
Comment cout
jpdean 5f0d043
Add TODO
jpdean 4b54e1c
Sort submap owned
jpdean 69bb7db
Debugging
jpdean 06dab30
Fix bug where ghosts ordering got the wrong submap index
jpdean b19baff
Merge branch 'main' into jpdean/fix_submesh
jpdean d11f184
Tidy
jpdean 4bf992b
Improve test
jpdean ce5ecaf
Remove TODO
jpdean 083ab0e
Don't move
jpdean 2973b08
Add back moves for now
jpdean beb86f7
Update cpp/dolfinx/common/IndexMap.cpp
jpdean 04b88b5
Improve docs
jpdean f5123fc
Use span
jpdean 87e3ea9
Get comm from imap
jpdean fecf9e2
Improve docs
jpdean af0fbbe
Use std::for_each
jpdean c10ff3a
Use std::size_t
jpdean a8ec0cd
Style change
jpdean 5631300
Fix spacing
jpdean 57a6539
Move initialisation
jpdean 0de942b
Initialise in if statement
jpdean 8df44a1
Use span
jpdean c67d22a
Improve clarity
jpdean b4c2569
Start working on scoping
jpdean aa0b113
More scoping
jpdean 8c298d2
More scoping
jpdean 87fc43f
Merge branch 'main' into jpdean/fix_submesh
jpdean 37a3ae0
More scoping
jpdean d3f52d4
Rename comms
jpdean 532ee95
comm names
jpdean 3dbcb97
Make free function
jpdean ed4bb6e
Update docs
jpdean 3c9df33
Extract function
jpdean 287e735
Use function
jpdean 104bf22
Use function
jpdean 76a8077
Start work on replacing old version
jpdean 2e3e6b0
Merge branch 'main' into jpdean/fix_submesh
jpdean eec7b96
Start work on removing old version
jpdean 9fd6f03
More work
jpdean c25a931
Add todo
jpdean a284e70
Comment some things
jpdean 491661e
Merge branch 'main' into jpdean/fix_submesh
jpdean da0884a
Fix for bs > 1
jpdean ff58871
Tidy
jpdean b0ac774
Tidy
jpdean c971174
Merge branch 'main' into jpdean/fix_submesh
jpdean c0f4d70
Use different approach
jpdean bac7d03
Revert "Tidy"
jpdean de5c7b3
Fix array size
jpdean 4cc5dc3
Try using map
jpdean c0b72e7
Fix array size
jpdean 0072d06
Revert "Fix array size"
jpdean 712f441
Revert "Try using map"
jpdean fdf26f0
Tidy
jpdean 0f0beb3
Merge branch 'main' into jpdean/fix_submesh
jpdean 12607cb
Tidy
jpdean d18a2e6
Tidy
jpdean c589ffe
Add option to allow owner to change
jpdean 93f131d
Remove create submap
jpdean d4fbd43
Remove unused import
jpdean 0c037cf
Remove shrink_to_fit
jpdean 6b4b1ed
Add param
jpdean d49884f
Rename
jpdean 0f75497
Use non-blocking comm
jpdean f3967c3
Remove NBX
jpdean 49ff4ff
Tidy
jpdean 3aad608
Tidy
jpdean 7384371
Tidy
jpdean 1c0d032
Tidy
jpdean 10a97f7
Use more efficient constructor for index map
jpdean 382f229
Merge branch 'main' into jpdean/fix_submesh
jpdean 79f5f8b
Add docs
jpdean 82fa3a8
Change name
jpdean 3683712
Improve description
jpdean f1645a9
Work on docs
garth-wells 8cd900c
Consistency fix
garth-wells 16fe9a6
Remove std::map
garth-wells e906b0c
Tidy up
garth-wells 6aae46a
Remove a map
garth-wells 3640a3c
Simplifications and fixes
garth-wells 60c50b3
Simplify
garth-wells 3b761cd
Improvements
garth-wells 66c05ad
Small fix for docs
garth-wells 5fab0e1
Updates
garth-wells a56c51f
Doc improvements
garth-wells add4f4d
Merge branch 'main' into jpdean/fix_submesh
garth-wells 8a102ae
Improve docs
jpdean 9faa926
Improve comments
jpdean File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could
std::tie
make this code easier to read and avoid thestd::move
at the end of the scope?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so, unless I'm missing something