LCOV - code coverage report
Current view: top level - src/postprocessors - ElementL2Norm.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 419b9d Lines: 11 11 100.0 %
Date: 2025-08-08 20:01:16 Functions: 4 4 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             : #include "ElementL2Norm.h"
      11             : 
      12             : registerMooseObject("MooseApp", ElementL2Norm);
      13             : 
      14             : InputParameters
      15       17241 : ElementL2Norm::validParams()
      16             : {
      17       17241 :   InputParameters params = ElementIntegralVariablePostprocessor::validParams();
      18       17241 :   return params;
      19             : }
      20             : 
      21        1547 : ElementL2Norm::ElementL2Norm(const InputParameters & parameters)
      22        1547 :   : ElementIntegralVariablePostprocessor(parameters)
      23             : {
      24        1547 : }
      25             : 
      26             : Real
      27       31585 : ElementL2Norm::getValue() const
      28             : {
      29       31585 :   return std::sqrt(ElementIntegralVariablePostprocessor::getValue());
      30             : }
      31             : 
      32             : Real
      33     9070545 : ElementL2Norm::computeQpIntegral()
      34             : {
      35     9070545 :   Real val = _u[_qp];
      36     9070545 :   return val * val;
      37             : }

Generated by: LCOV version 1.14