LCOV - code coverage report
Current view: top level - src/controllogic - THMSolvePostprocessorControl.C (source / functions) Hit Total Coverage
Test: idaholab/moose thermal_hydraulics: #32971 (54bef8) with base c6cf66 Lines: 11 12 91.7 %
Date: 2026-05-29 20:41:18 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 "THMSolvePostprocessorControl.h"
      11             : 
      12             : registerMooseObject("ThermalHydraulicsApp", THMSolvePostprocessorControl);
      13             : 
      14             : InputParameters
      15          16 : THMSolvePostprocessorControl::validParams()
      16             : {
      17          16 :   InputParameters params = THMControl::validParams();
      18          32 :   params.addRequiredParam<PostprocessorName>(
      19             :       "postprocessor", "The name of the postprocessot that indicates is a solve should be done.");
      20          16 :   params.addClassDescription("Control the solve based on a postprocessor value");
      21          16 :   return params;
      22           0 : }
      23             : 
      24           8 : THMSolvePostprocessorControl::THMSolvePostprocessorControl(const InputParameters & parameters)
      25           8 :   : THMControl(parameters), _solve_pps(getPostprocessorValue("postprocessor"))
      26             : {
      27           8 : }
      28             : 
      29             : void
      30          50 : THMSolvePostprocessorControl::execute()
      31             : {
      32         100 :   setControllableValueByName<bool>("Problem::" + _fe_problem.name(), "solve", _solve_pps != 0.);
      33          50 : }

Generated by: LCOV version 1.14