LCOV - code coverage report
Current view: top level - include/vectorpostprocessors - TensorHistogram.h (source / functions) Hit Total Coverage
Test: idaholab/swift: #92 (25e020) with base b3cd84 Lines: 2 2 100.0 %
Date: 2025-09-10 17:10:32 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /**********************************************************************/
       2             : /*                    DO NOT MODIFY THIS HEADER                       */
       3             : /*             Swift, a Fourier spectral solver for MOOSE             */
       4             : /*                                                                    */
       5             : /*            Copyright 2024 Battelle Energy Alliance, LLC            */
       6             : /*                        ALL RIGHTS RESERVED                         */
       7             : /**********************************************************************/
       8             : 
       9             : #pragma once
      10             : 
      11             : #include "TensorPostprocessor.h"
      12             : 
      13             : /**
      14             :  * Compute the integral of a Tensor buffer
      15             :  */
      16             : class TensorHistogram : public TensorVectorPostprocessor
      17             : {
      18             : public:
      19             :   static InputParameters validParams();
      20             : 
      21             :   TensorHistogram(const InputParameters & parameters);
      22             : 
      23           4 :   virtual void initialize() override {}
      24             :   virtual void execute() override;
      25           4 :   virtual void finalize() override {}
      26             : 
      27             : protected:
      28             :   const Real _min;
      29             :   const Real _max;
      30             :   std::size_t _bins;
      31             :   torch::Tensor _bin_edges;
      32             : 
      33             :   VectorPostprocessorValue & _bin_vec;
      34             :   VectorPostprocessorValue & _count_vec;
      35             : };

Generated by: LCOV version 1.14