Skip to content

Commit

Permalink
fix: find singleton indices
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeolson committed Oct 12, 2023
1 parent 4b9502f commit e00bf8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyamg/vis/vis_coarse.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def vis_aggregate_groups(V, E2V, AggOp, mesh_type,
# 3.5 #
# single node aggregates
sums = np.array(AggOp.sum(axis=0)).ravel()
E2V_c = np.where(sums == 1)[0]
E2V_c = np.argwhere(np.isin(AggOp.indices, np.where(sums == 1)[0])).ravel()
Nel_c = len(E2V_c)

# 4 #
Expand Down

0 comments on commit e00bf8e

Please sign in to comment.