LCOV - code coverage report
Current view: top level - src/actions - THMDebugAction.C (source / functions) Hit Total Coverage
Test: idaholab/moose thermal_hydraulics: #30301 (3b550b) with base 2ad78d Lines: 11 12 91.7 %
Date: 2025-07-30 13:02:48 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 "THMDebugAction.h"
      11             : #include "THMProblem.h"
      12             : 
      13             : registerMooseAction("ThermalHydraulicsApp", THMDebugAction, "THM:debug_action");
      14             : 
      15             : InputParameters
      16         148 : THMDebugAction::validParams()
      17             : {
      18         148 :   InputParameters params = Action::validParams();
      19         296 :   params.addParam<bool>("check_jacobian", false, "Set to true to check jacobian");
      20         148 :   params.addClassDescription("Add specific THM debugging option.");
      21             : 
      22         148 :   return params;
      23           0 : }
      24             : 
      25         148 : THMDebugAction::THMDebugAction(const InputParameters & params) : Action(params) {}
      26             : 
      27             : void
      28         148 : THMDebugAction::act()
      29             : {
      30         148 :   THMProblem * thm_problem = dynamic_cast<THMProblem *>(_problem.get());
      31         148 :   if (thm_problem)
      32         260 :     thm_problem->setCheckJacobian(getParam<bool>("check_jacobian"));
      33         148 : }

Generated by: LCOV version 1.14