Skip to content

Commit

Permalink
Updated RedistributeGlue constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiManyer committed Aug 10, 2023
1 parent 3758cec commit 818edd0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/OctreeDistributedDiscreteModels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1829,7 +1829,7 @@ function _redistribute_parts_subseteq_parts_redistributed(model::OctreeDistribut
lids_rcv, parts_rcv, lids_snd, parts_snd, old2new, new2old =
_to_pdata(parts, lids_rcv, parts_rcv, lids_snd, parts_snd, old2new, new2old)

glue = GridapDistributed.RedistributeGlue(parts_rcv,parts_snd,lids_rcv,lids_snd,old2new,new2old)
glue = GridapDistributed.RedistributeGlue(parts,model.parts,parts_rcv,parts_snd,lids_rcv,lids_snd,old2new,new2old)

# Extract ghost and lnodes
ptr_pXest_ghost = setup_pXest_ghost(Val{Dc}, ptr_pXest_new)
Expand Down Expand Up @@ -1912,7 +1912,9 @@ function _redistribute_parts_supset_parts_redistributed(
lids_rcv, parts_rcv, lids_snd, parts_snd, old2new, new2old =
_to_pdata(model.parts, lids_rcv, parts_rcv, lids_snd, parts_snd, old2new, new2old)

glue = GridapDistributed.RedistributeGlue(parts_rcv,parts_snd,lids_rcv,lids_snd,old2new,new2old)
glue = GridapDistributed.RedistributeGlue(parts_redistributed_model,model.parts,
parts_rcv,parts_snd,lids_rcv,lids_snd,
old2new,new2old)

if (i_am_in(subset_comm))
# p4est_vtk_write_file(ptr_pXest_new, C_NULL, "ptr_pXest_new")
Expand Down

0 comments on commit 818edd0

Please sign in to comment.