Skip to content

Commit

Permalink
hmatrix: add some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl committed May 18, 2023
1 parent a293bd9 commit 41326fa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pytential/linalg/hmatrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
class LinearOperator:
pass

import logging
logger = logging.getLogger(__name__)


__doc__ = """
Hierarical Matrix Construction
Expand Down Expand Up @@ -518,6 +521,10 @@ def P2PClusterMatrixBuilderWithDiagonal(*args, **kwargs):
tree_kind=_tree_kind,
max_particles_in_box=_max_particles_in_box)

logger.info("tree levels: %d", ctree.nlevels)
logger.info("cluster count: %d", cluster_index.nclusters)
logger.info("root cluster sizes: %s", list(np.diff(cluster_index.starts)))

from pytential.linalg.utils import TargetAndSourceClusterList
tgt_src_index = TargetAndSourceClusterList(
targets=cluster_index, sources=cluster_index)
Expand Down

0 comments on commit 41326fa

Please sign in to comment.