LCOV - code coverage report
Current view: top level - src/postprocessors - ElementL2Norm.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #32971 (54bef8) with base c6cf66 Lines: 11 11 100.0 %
Date: 2026-05-29 20:35:17 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        5797 : ElementL2Norm::validParams()
      16             : {
      17        5797 :   InputParameters params = ElementIntegralVariablePostprocessor::validParams();
      18        5797 :   return params;
      19             : }
      20             : 
      21        1428 : ElementL2Norm::ElementL2Norm(const InputParameters & parameters)
      22        1428 :   : ElementIntegralVariablePostprocessor(parameters)
      23             : {
      24        1428 : }
      25             : 
      26             : Real
      27       28929 : ElementL2Norm::getValue() const
      28             : {
      29       28929 :   return std::sqrt(ElementIntegralVariablePostprocessor::getValue());
      30             : }
      31             : 
      32             : Real
      33     8049636 : ElementL2Norm::computeQpIntegral()
      34             : {
      35     8049636 :   Real val = _u[_qp];
      36     8049636 :   return val * val;
      37             : }

Generated by: LCOV version 1.14