LCOV - code coverage report
Current view: top level - src/indicators - LaplacianJumpIndicator.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 419b9d Lines: 10 11 90.9 %
Date: 2025-08-08 20:01:16 Functions: 3 3 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 "LaplacianJumpIndicator.h"
      11             : 
      12             : registerMooseObject("MooseApp", LaplacianJumpIndicator);
      13             : 
      14             : InputParameters
      15       14346 : LaplacianJumpIndicator::validParams()
      16             : {
      17       14346 :   InputParameters params = InternalSideIndicator::validParams();
      18       14346 :   params.addClassDescription(
      19             :       "Compute the jump of the solution laplacian across element bondaries.");
      20       14346 :   return params;
      21           0 : }
      22             : 
      23          42 : LaplacianJumpIndicator::LaplacianJumpIndicator(const InputParameters & parameters)
      24          42 :   : InternalSideIndicator(parameters), _second_u(second()), _second_u_neighbor(neighborSecond())
      25             : {
      26          42 : }
      27             : 
      28             : Real
      29       58320 : LaplacianJumpIndicator::computeQpIntegral()
      30             : {
      31       58320 :   Real jump = (_second_u[_qp].tr() - _second_u_neighbor[_qp].tr());
      32             : 
      33       58320 :   return jump * jump;
      34             : }

Generated by: LCOV version 1.14