LCOV - code coverage report
Current view: top level - include/kokkos/postprocessors - KokkosSumPostprocessor.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #32971 (54bef8) with base c6cf66 Lines: 3 3 100.0 %
Date: 2026-05-29 20:35:17 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //* This file is part of the MOOSE framework
       2             : //* https://mooseframework.inl.gov
       3             : //*
       4             : //* All rights reserved, see COPYRIGHT for full restrictions
       5             : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
       6             : //*
       7             : //* Licensed under LGPL 2.1, please see LICENSE for details
       8             : //* https://www.gnu.org/licenses/lgpl-2.1.html
       9             : 
      10             : #pragma once
      11             : 
      12             : #include "KokkosGeneralPostprocessor.h"
      13             : 
      14             : /**
      15             :  * Computes a sum of postprocessor values
      16             :  */
      17             : class KokkosSumPostprocessor : public Moose::Kokkos::GeneralPostprocessor
      18             : {
      19             : public:
      20             :   static InputParameters validParams();
      21             :   KokkosSumPostprocessor(const InputParameters & parameters);
      22             : 
      23          90 :   virtual void initialize() override {}
      24          90 :   virtual void compute() override {}
      25             :   virtual void finalize() override;
      26          90 :   virtual PostprocessorValue getValue() const override { return _sum; }
      27             : 
      28             : protected:
      29             :   /// Postprocessors to add up
      30             :   std::vector<const PostprocessorValue *> _values;
      31             :   /// The sum value
      32             :   Real _sum;
      33             : };

Generated by: LCOV version 1.14