From 03f4fe254a53eb39bfabe0b15f4e13bd304e7b66 Mon Sep 17 00:00:00 2001 From: Eric Neiva Date: Mon, 15 Jun 2026 10:20:30 +0200 Subject: [PATCH 1/2] [CellAGG] substitute global array by vectorfromd ict --- src/Distributed/DistributedAgFEM.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Distributed/DistributedAgFEM.jl b/src/Distributed/DistributedAgFEM.jl index cdb65ab1..3413a6e9 100644 --- a/src/Distributed/DistributedAgFEM.jl +++ b/src/Distributed/DistributedAgFEM.jl @@ -308,7 +308,9 @@ function merge_nodes(model::DiscreteModel,ids) lnew_to_l = findall(map(==,l_to_lparent,1:n_local)) l_to_lnew = zeros(Int,n_local) l_to_lnew[lnew_to_l] = 1:length(lnew_to_l) - g_to_lnew = map(l->iszero(l) ? l : l_to_lnew[l], g_to_l) + g_to_lnew = VectorFromDict(reverse(l_to_g[lnew_to_l]), + reverse(1:length(lnew_to_l)), + n_global) l_to_lnew = g_to_lnew[l_to_g] grid = get_grid(model) From 81565d9d3b82668eda57d1cd6f165d1b29037687 Mon Sep 17 00:00:00 2001 From: Eric Neiva Date: Mon, 15 Jun 2026 12:21:10 +0200 Subject: [PATCH 2/2] Update NEWS.md --- NEWS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/NEWS.md b/NEWS.md index de74695c..48621295 100644 --- a/NEWS.md +++ b/NEWS.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Fix for issue #115, which is a bug in the logic of the `ACTIVE` mask and `GhostSkeleton` construction. Since PR [#123](https://github.com/gridap/GridapEmbedded.jl/pull/123). +- Cell aggregation: Avoid global size in memory array when adding remote ghosts. Since PR [#127](https://github.com/gridap/GridapEmbedded.jl/pull/127). ## [0.9.11] - 2026-4-28