LCOV - code coverage report
Current view: top level - src/interfaces - SetupInterface.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 28 28 100.0 %
Date: 2025-07-17 01:28:37 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    14947806 : SetupInterface::validParams()
      16             : {
      17    14947806 :   InputParameters params = emptyInputParameters();
      18             : 
      19             :   // Add the 'execute_on' input parameter for users to set
      20    14947806 :   ExecFlagEnum execute_options = MooseUtils::getDefaultExecFlagEnum();
      21    14947806 :   execute_options = EXEC_LINEAR;
      22    14947806 :   params.addParam<ExecFlagEnum>("execute_on", execute_options, execute_options.getDocString());
      23    29895612 :   return params;
      24    14947806 : }
      25             : 
      26     1013241 : SetupInterface::SetupInterface(const MooseObject * moose_object)
      27     2026482 :   : _execute_enum(moose_object->parameters().isParamValid("execute_on")
      28     1013241 :                       ? moose_object->parameters().get<ExecFlagEnum>("execute_on")
      29             :                       : _empty_execute_enum),
      30     1013233 :     _current_execute_flag(
      31     1013241 :         (moose_object->parameters().getCheckedPointerParam<FEProblemBase *>("_fe_problem_base"))
      32     2026482 :             ->getCurrentExecuteOnFlag())
      33             : {
      34             :   _empty_execute_enum
      35     1013233 :       .clearSetValues(); // remove any flags for the case when "execute_on" is not used
      36     1013233 : }
      37             : 
      38      956605 : SetupInterface::~SetupInterface() {}
      39             : 
      40             : void
      41      496513 : SetupInterface::initialSetup()
      42             : {
      43      496513 : }
      44             : 
      45             : void
      46     4221817 : SetupInterface::timestepSetup()
      47             : {
      48     4221817 : }
      49             : 
      50             : void
      51     5899951 : SetupInterface::jacobianSetup()
      52             : {
      53     5899951 : }
      54             : 
      55             : void
      56    38460352 : SetupInterface::residualSetup()
      57             : {
      58    38460352 : }
      59             : 
      60             : void
      61    44609586 : SetupInterface::subdomainSetup()
      62             : {
      63    44609586 : }
      64             : 
      65             : const ExecFlagEnum &
      66      449904 : SetupInterface::getExecuteOnEnum() const
      67             : {
      68      449904 :   return _execute_enum;
      69             : }

Generated by: LCOV version 1.14