LCOV - code coverage report
Current view: top level - src/interfaces - SetupInterface.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 419b9d Lines: 28 28 100.0 %
Date: 2025-08-08 20:01:16 Functions: 9 10 90.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 "SetupInterface.h"
      11             : #include "Conversion.h"
      12             : #include "FEProblem.h"
      13             : 
      14             : InputParameters
      15    15178848 : SetupInterface::validParams()
      16             : {
      17    15178848 :   InputParameters params = emptyInputParameters();
      18             : 
      19             :   // Add the 'execute_on' input parameter for users to set
      20    15178848 :   ExecFlagEnum execute_options = MooseUtils::getDefaultExecFlagEnum();
      21    15178848 :   execute_options = EXEC_LINEAR;
      22    15178848 :   params.addParam<ExecFlagEnum>("execute_on", execute_options, execute_options.getDocString());
      23    30357696 :   return params;
      24    15178848 : }
      25             : 
      26     1122926 : SetupInterface::SetupInterface(const MooseObject * moose_object)
      27     2245852 :   : _execute_enum(moose_object->parameters().isParamValid("execute_on")
      28     1122926 :                       ? moose_object->parameters().get<ExecFlagEnum>("execute_on")
      29             :                       : _empty_execute_enum),
      30     1122918 :     _current_execute_flag(
      31     1122926 :         (moose_object->parameters().getCheckedPointerParam<FEProblemBase *>("_fe_problem_base"))
      32     2245852 :             ->getCurrentExecuteOnFlag())
      33             : {
      34             :   _empty_execute_enum
      35     1122918 :       .clearSetValues(); // remove any flags for the case when "execute_on" is not used
      36     1122918 : }
      37             : 
      38     1063224 : SetupInterface::~SetupInterface() {}
      39             : 
      40             : void
      41      536856 : SetupInterface::initialSetup()
      42             : {
      43      536856 : }
      44             : 
      45             : void
      46     4595232 : SetupInterface::timestepSetup()
      47             : {
      48     4595232 : }
      49             : 
      50             : void
      51     6368199 : SetupInterface::jacobianSetup()
      52             : {
      53     6368199 : }
      54             : 
      55             : void
      56    41321136 : SetupInterface::residualSetup()
      57             : {
      58    41321136 : }
      59             : 
      60             : void
      61    48242011 : SetupInterface::subdomainSetup()
      62             : {
      63    48242011 : }
      64             : 
      65             : const ExecFlagEnum &
      66      487065 : SetupInterface::getExecuteOnEnum() const
      67             : {
      68      487065 :   return _execute_enum;
      69             : }

Generated by: LCOV version 1.14