From a627784739e1d209cfc0feb29e92bdff33c41608 Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de> Date: Tue, 17 Apr 2018 10:48:43 +0200 Subject: [PATCH] Add logging to the sumfact kernel realization step --- python/dune/perftool/pdelab/localoperator.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/python/dune/perftool/pdelab/localoperator.py b/python/dune/perftool/pdelab/localoperator.py index 7fe95bbe..549cd30c 100644 --- a/python/dune/perftool/pdelab/localoperator.py +++ b/python/dune/perftool/pdelab/localoperator.py @@ -1026,13 +1026,19 @@ def generate_localoperator_kernels(operator): def generate_localoperator_file(kernels, filename): + logger = logging.getLogger(__name__) + operator_methods = [] for k in kernels.values(): operator_methods.extend(k) # Generate all the realizations of sum factorization kernel objects needed in this operator + sfkernels = [sf for sf in retrieve_cache_items("kernelimpl")] + if sfkernels: + logger.info("generate_localoperator_kernels: Create {} sumfact kernel realizations".format(len(sfkernels))) + from dune.perftool.sumfact.realization import realize_sumfact_kernel_function - for sf, qp in retrieve_cache_items("kernelimpl"): + for sf, qp in sfkernels: from dune.perftool.sumfact.tabulation import set_quadrature_points set_quadrature_points(qp) operator_methods.append(realize_sumfact_kernel_function(sf)) -- GitLab