Skip to content

Commit

Permalink
add recursive clustering and skeletonization
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl committed Sep 14, 2022
1 parent 814b8ac commit d067a49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytential/linalg/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def make_block(i: int, j: int):

# {{{ cluster generation

def _build_binary_ish_tree_from_starts(starts: np.ndarray) -> ClusterTree:
def _build_binary_ish_tree_from_indices(starts: np.ndarray) -> ClusterTree:
partition_box_ids = np.arange(starts.size - 1)

box_ids = partition_box_ids
Expand Down Expand Up @@ -325,7 +325,7 @@ def partition_by_nodes(
starts = np.linspace(0, discr.ndofs, nclusters + 1, dtype=np.int64)
assert starts[-1] == discr.ndofs

ctree = _build_binary_ish_tree_from_starts(starts)
ctree = _build_binary_ish_tree_from_indices(starts)

from pytential.linalg import make_index_list
return make_index_list(indices, starts=starts), ctree
Expand Down

0 comments on commit d067a49

Please sign in to comment.