Skip to content

Commit fad9067

Browse files
authored
Merge pull request #127 from gridap/cell_agg_substitute_global_array
Cell AGG avoid global array
2 parents 7e045af + 81565d9 commit fad9067

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
### Fixed
1010

1111
- 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).
12+
- Cell aggregation: Avoid global size in memory array when adding remote ghosts. Since PR [#127](https://github.com/gridap/GridapEmbedded.jl/pull/127).
1213

1314
## [0.9.11] - 2026-4-28
1415

src/Distributed/DistributedAgFEM.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,9 @@ function merge_nodes(model::DiscreteModel,ids)
308308
lnew_to_l = findall(map(==,l_to_lparent,1:n_local))
309309
l_to_lnew = zeros(Int,n_local)
310310
l_to_lnew[lnew_to_l] = 1:length(lnew_to_l)
311-
g_to_lnew = map(l->iszero(l) ? l : l_to_lnew[l], g_to_l)
311+
g_to_lnew = VectorFromDict(reverse(l_to_g[lnew_to_l]),
312+
reverse(1:length(lnew_to_l)),
313+
n_global)
312314
l_to_lnew = g_to_lnew[l_to_g]
313315

314316
grid = get_grid(model)

0 commit comments

Comments
 (0)