From 880858c6010dccec33c87974abde38c4d86cc880 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Fuhrmann?= Date: Mon, 22 Jul 2024 22:46:16 +0200 Subject: [PATCH] If edge partioning is performed, do also node partitioning The use case for edge partitioning is in VoronoiFVM, and in that code it only makes sense together --- Project.toml | 2 +- src/partitioning.jl | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 08192586..feaaf1a1 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ExtendableGrids" uuid = "cfc395e8-590f-11e8-1f13-43a2532b2fa8" authors = ["Juergen Fuhrmann ", "Christian Merdon ", "Johannes Taraz "] -version = "1.9.1" +version = "1.9.2" [deps] AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c" diff --git a/src/partitioning.jl b/src/partitioning.jl index a4928213..4f563f25 100644 --- a/src/partitioning.jl +++ b/src/partitioning.jl @@ -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)