Skip to content

Commit e70ac43

Browse files
committed
Added more comments
1 parent e2afcf3 commit e70ac43

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

src/Distributed/DistributedAgFEM.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,8 @@ function AgFEMSpace(
739739
cache_fetch = fetch_vector_ghost_values_cache(
740740
cell_ldof_to_dofs_ptrs,partition(cell_indices))
741741
fetch_vector_ghost_values!(cell_ldof_to_dofs_ptrs,cache_fetch) |> wait
742-
# Only update the f_dof_to_dof_ptrs where the fdof_to_acell is not owned
742+
# Only update the f_dof_to_dof_ptrs
743+
# whenever the fdof_to_acell is not owned
743744
cell_wise_to_dof_wise!(fdof_to_dofs_ptrs,
744745
cell_ldof_to_dofs_ptrs,
745746
cell_to_dof_ids,

test/dev/distributed_aggregation.jl

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -319,17 +319,11 @@ function run_distributed_agfem(distribute,
319319
end
320320

321321
# "Creating" aggregate-conforming cell partition
322-
323-
# RMK: Current distributed AgFEM is constructed on
324-
# the local portion and assumes the root cells of
325-
# all ghost cells are in the local portion.
326-
322+
# TO-DO: Jordi reviews if aggtrian can be created from aggmodel
323+
# See if swapping the cell_gids of the cutgeo for the new ones
327324
function active_aggregate_conforming_trian(model,cutgeo,agg_cell_indices)
328325
trians = map( local_views(cutgeo),
329326
agg_cell_indices ) do cutgeo, agg_cell_indices
330-
# # This works; all root of owned are known
331-
# Triangulation(no_ghost,agg_cell_indices,cutgeo,ACTIVE)
332-
# # This fails; root cell of ghost is not known
333327
Triangulation(with_ghost,agg_cell_indices,cutgeo,ACTIVE)
334328
end
335329
aggmodel = GridapDistributed.GenericDistributedDiscreteModel(
@@ -350,6 +344,7 @@ function run_distributed_agfem(distribute,
350344

351345
aggdof_to_fdof, aggdof_to_dofs, aggdof_to_coeffs = AgFEMSpace(V,lcell_to_lroot,agg_cell_indices)
352346

347+
# # Proper sanity check to use when full table of constraints computed
353348
# Vagg = AgFEMSpace(V,lcell_to_lroot,agg_cell_indices)
354349
# u(x) = x[1]+x[2]
355350
# uh = interpolate_everywhere(u,Vagg)

0 commit comments

Comments
 (0)