LCOV - code coverage report
Current view: top level - include/utils - ADWeightedTransition.h (source / functions) Hit Total Coverage
Test: idaholab/moose thermal_hydraulics: #30301 (3b550b) with base 2ad78d Lines: 0 1 0.0 %
Date: 2025-07-30 13:02:48 Functions: 0 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             : #pragma once
      11             : 
      12             : #include "ADSmoothTransition.h"
      13             : 
      14             : /**
      15             :  * Weighted transition between two functions of one variable
      16             :  */
      17           0 : class ADWeightedTransition : public ADSmoothTransition
      18             : {
      19             : public:
      20             :   /**
      21             :    * Constructor.
      22             :    *
      23             :    * @param[in] x_center   Center point of transition
      24             :    * @param[in] transition_width   Width of transition
      25             :    */
      26             :   ADWeightedTransition(const ADReal & x_center, const ADReal & transition_width);
      27             : 
      28             :   virtual ADReal value(const ADReal & x, const ADReal & f1, const ADReal & f2) const override;
      29             : 
      30             :   /**
      31             :    * Computes the weight of the first function
      32             :    *
      33             :    * @param[in] x   Point at which to evaluate weight
      34             :    */
      35             :   ADReal weight(const ADReal & x) const;
      36             : };

Generated by: LCOV version 1.14