LCOV - code coverage report
Current view: top level - src/bounds - VariableOldValueBounds.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 10 12 83.3 %
Date: 2025-07-17 01:28:37 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 "VariableOldValueBounds.h"
      11             : 
      12             : registerMooseObject("MooseApp", VariableOldValueBounds);
      13             : registerMooseObjectRenamed("MooseApp",
      14             :                            VariableOldValueBoundsAux,
      15             :                            "06/30/2024 24:00",
      16             :                            VariableOldValueBounds);
      17             : 
      18             : InputParameters
      19       28580 : VariableOldValueBounds::validParams()
      20             : {
      21       28580 :   InputParameters params = BoundsBase::validParams();
      22       28580 :   params.addClassDescription("Uses the old variable values as the bounds for the new solve.");
      23       28580 :   return params;
      24           0 : }
      25             : 
      26          26 : VariableOldValueBounds::VariableOldValueBounds(const InputParameters & parameters)
      27          26 :   : BoundsBase(parameters)
      28             : {
      29          26 : }
      30             : 
      31             : Real
      32      103334 : VariableOldValueBounds::getBound()
      33             : {
      34      103334 :   if (_fe_var && isNodal())
      35      103334 :     return _fe_var->getNodalValueOld(*_current_node);
      36             :   else
      37           0 :     mooseError("This variable type is not supported yet");
      38             : }

Generated by: LCOV version 1.14