Skip to content

Commit

Permalink
If edge partioning is performed, do also node partitioning
Browse files Browse the repository at this point in the history
The use case for edge partitioning is in VoronoiFVM, and in
that code it only makes sense together
  • Loading branch information
j-fu committed Jul 22, 2024
1 parent b0e0f25 commit 880858c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ExtendableGrids"
uuid = "cfc395e8-590f-11e8-1f13-43a2532b2fa8"
authors = ["Juergen Fuhrmann <[email protected]>", "Christian Merdon <[email protected]>", "Johannes Taraz <[email protected]>"]
version = "1.9.1"
version = "1.9.2"

[deps]
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
Expand Down
3 changes: 3 additions & 0 deletions src/partitioning.jl
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,9 @@ function partition(grid::ExtendableGrid,
keep_nodepermutation=false,
edges = false )
pgrid, cn, nc = dopartition(grid,alg)
if edges
nodes=true
end
if !isa(alg, TrivialPartitioning)
induce_node_partitioning!(pgrid,cn,nc; trivial=!nodes, keep_nodepermutation)
induce_edge_partitioning!(pgrid; trivial=!edges)
Expand Down

2 comments on commit 880858c

@j-fu
Copy link
Member Author

@j-fu j-fu commented on 880858c Jul 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/111559

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.9.2 -m "<description of version>" 880858c6010dccec33c87974abde38c4d86cc880
git push origin v1.9.2

Please sign in to comment.