LCOV - code coverage report
Current view: top level - src/vectorpostprocessors - ElementOptimizationSourceFunctionInnerProduct.C (source / functions) Hit Total Coverage
Test: idaholab/moose optimization: #31405 (292dce) with base fef103 Lines: 10 11 90.9 %
Date: 2025-09-04 07:54:57 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 "ElementOptimizationSourceFunctionInnerProduct.h"
      11             : 
      12             : registerMooseObject("OptimizationApp", ElementOptimizationSourceFunctionInnerProduct);
      13             : 
      14             : InputParameters
      15         207 : ElementOptimizationSourceFunctionInnerProduct::validParams()
      16             : {
      17         207 :   InputParameters params = ElementOptimizationFunctionInnerProduct::validParams();
      18         207 :   params.addClassDescription("Computes the inner product of variable with parameterized source "
      19             :                              "function for optimization gradient computation.");
      20         207 :   return params;
      21           0 : }
      22             : 
      23         105 : ElementOptimizationSourceFunctionInnerProduct::ElementOptimizationSourceFunctionInnerProduct(
      24         105 :     const InputParameters & parameters)
      25         105 :   : ElementOptimizationFunctionInnerProduct(parameters)
      26             : {
      27         105 : }
      28             : 
      29             : Real
      30      185024 : ElementOptimizationSourceFunctionInnerProduct::computeQpInnerProduct()
      31             : {
      32      185024 :   return _var[_qp];
      33             : }

Generated by: LCOV version 1.14