Skip to content

Commit a227644

Browse files
committed
Minor renaming to avoid confusion
1 parent 70bbeea commit a227644

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Distributed/DistributedAgFEM.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -840,24 +840,24 @@ function generate_aggregated_gids(cell_gids, cell_to_fdofs, fdof_is_agg)
840840
end
841841

842842
# Generate global master and aggregated dof ids
843-
mdof_gids, adof_gids = GridapDistributed.generate_posneg_gids(
843+
mdof_gids, aggdof_gids = GridapDistributed.generate_posneg_gids(
844844
cell_gids, cell_to_lposneg, nlpos, nlneg
845845
)
846846

847-
mdof_to_fdof, adof_to_fdof = map(fdof_to_posneg, nlpos, nlneg) do fdof_to_posneg, npos, nneg
848-
fdof_to_mdof = zeros(Int32,npos)
849-
fdof_to_aggdof = zeros(Int32,nneg)
847+
mdof_to_fdof, aggdof_to_fdof = map(fdof_to_posneg, nlpos, nlneg) do fdof_to_posneg, npos, nneg
848+
mdof_to_fdof = zeros(Int32,npos)
849+
aggdof_to_fdof = zeros(Int32,nneg)
850850
for (fdof,posneg) in enumerate(fdof_to_posneg)
851851
if posneg > 0
852-
fdof_to_mdof[posneg] = Int32(fdof)
852+
mdof_to_fdof[posneg] = Int32(fdof)
853853
elseif posneg < 0
854-
fdof_to_aggdof[-posneg] = Int32(fdof)
854+
aggdof_to_fdof[-posneg] = Int32(fdof)
855855
end
856856
end
857-
fdof_to_mdof, fdof_to_aggdof
857+
mdof_to_fdof, aggdof_to_fdof
858858
end |> tuple_of_arrays
859859

860-
return mdof_gids, adof_gids, mdof_to_fdof, adof_to_fdof, fdof_to_posneg
860+
return mdof_gids, aggdof_gids, mdof_to_fdof, aggdof_to_fdof, fdof_to_posneg
861861
end
862862

863863
function get_aggdof_ptrs(

0 commit comments

Comments
 (0)