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

Generated by: LCOV version 1.14