LCOV - code coverage report
Current view: top level - include/userobjects - FunctionLayeredIntegral.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 1 1 100.0 %
Date: 2025-07-17 01:28:37 Functions: 1 1 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 "SpatialUserObjectFunctor.h"
      13             : #include "FunctionElementIntegralUserObject.h"
      14             : #include "LayeredBase.h"
      15             : 
      16             : class FunctionLayeredIntegral;
      17             : 
      18             : /**
      19             :  * This UserObject computes volume integrals of a function storing partial sums for the specified
      20             :  * number of intervals in a direction (x,y,z).
      21             :  */
      22             : class FunctionLayeredIntegral : public SpatialUserObjectFunctor<FunctionElementIntegralUserObject>,
      23             :                                 public LayeredBase
      24             : {
      25             : public:
      26             :   static InputParameters validParams();
      27             : 
      28             :   FunctionLayeredIntegral(const InputParameters & parameters);
      29             : 
      30             :   /**
      31             :    * Given a Point return the integral value associated with the layer that point falls in.
      32             :    *
      33             :    * @param p The point to look for in the layers.
      34             :    */
      35         540 :   virtual Real spatialValue(const Point & p) const override { return integralValue(p); }
      36             : 
      37             :   virtual const std::vector<Point> spatialPoints() const override;
      38             : 
      39             :   virtual void initialize() override;
      40             :   virtual void execute() override;
      41             :   virtual void finalize() override;
      42             :   virtual void threadJoin(const UserObject & y) override;
      43             : };

Generated by: LCOV version 1.14