Skip to content

Commit f4c45f8

Browse files
committed
Extract only owned data for output
1 parent ee78777 commit f4c45f8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/dev/distributed_aggregation.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,17 @@ lcell_to_root, lcell_to_value = find_optimal_root!(lcell_to_root,lcell_to_value,
121121

122122
display(lcell_to_root)
123123

124+
gids = get_cell_gids(bgmodel)
125+
ocell_to_root = map(lcell_to_root,own_to_local(gids)) do agg,o_to_l
126+
map(Reindex(agg),o_to_l)
127+
end
128+
ocell_to_lroot = map(lcell_to_lroot,own_to_local(gids)) do agg,o_to_l
129+
map(Reindex(agg),o_to_l)
130+
end
131+
124132
writevtk(EmbeddedBoundary(cutgeo),"data/bnd");
125133
writevtk(
126134
Triangulation(bgmodel), "data/dumbell_aggregates",
127-
celldata = ["aggregate" => lcell_to_root, "local_aggregates" => lcell_to_lroot],
135+
celldata = ["aggregate" => ocell_to_root, "local_aggregates" => ocell_to_lroot],
128136
);
129137

0 commit comments

Comments
 (0)