LCOV - code coverage report
Current view: top level - src/postprocessors - ElementSidesL2Norm.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 419b9d Lines: 12 13 92.3 %
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 "ElementSidesL2Norm.h"
      11             : 
      12             : registerMooseObject("MooseApp", ElementSidesL2Norm);
      13             : 
      14             : InputParameters
      15       14340 : ElementSidesL2Norm::validParams()
      16             : {
      17       14340 :   InputParameters params = InternalSideIntegralVariablePostprocessor::validParams();
      18       14340 :   params.addClassDescription("Computes the L2 norm of a variable over element sides.");
      19       14340 :   return params;
      20           0 : }
      21             : 
      22          39 : ElementSidesL2Norm::ElementSidesL2Norm(const InputParameters & parameters)
      23          39 :   : InternalSideIntegralVariablePostprocessor(parameters)
      24             : {
      25          39 : }
      26             : 
      27             : Real
      28          34 : ElementSidesL2Norm::getValue() const
      29             : {
      30          34 :   return std::sqrt(InternalSideIntegralVariablePostprocessor::getValue());
      31             : }
      32             : 
      33             : Real
      34         987 : ElementSidesL2Norm::computeQpIntegral()
      35             : {
      36         987 :   auto & u = _u[_qp];
      37         987 :   return u * u;
      38             : }

Generated by: LCOV version 1.14