LCOV - code coverage report
Current view: top level - src/interfaces - TransientInterface.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 99787a Lines: 32 33 97.0 %
Date: 2025-10-14 20:01:24 Functions: 4 5 80.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 "TransientInterface.h"
      11             : #include "FEProblem.h"
      12             : 
      13             : InputParameters
      14    11984788 : TransientInterface::validParams()
      15             : {
      16             : 
      17    11984788 :   InputParameters params = emptyInputParameters();
      18    35954364 :   params.addParam<bool>(
      19             :       "implicit",
      20    23969576 :       true,
      21             :       "Determines whether this object is calculated using an implicit or explicit form");
      22             : 
      23    35954364 :   params.addParamNamesToGroup("implicit", "Advanced");
      24    11984788 :   return params;
      25           0 : }
      26             : 
      27      643589 : TransientInterface::TransientInterface(const MooseObject * moose_object)
      28     1287178 :   : _ti_params(moose_object->parameters()),
      29     2574356 :     _ti_feproblem(*_ti_params.getCheckedPointerParam<FEProblemBase *>("_fe_problem_base")),
      30      643589 :     _is_implicit(_ti_params.have_parameter<bool>("implicit") ? _ti_params.get<bool>("implicit")
      31             :                                                              : true),
      32      643589 :     _t(_is_implicit ? _ti_feproblem.time() : _ti_feproblem.timeOld()),
      33      643589 :     _t_old(_ti_feproblem.timeOld()),
      34      643589 :     _t_step(_ti_feproblem.timeStep()),
      35      643589 :     _dt(_ti_feproblem.dt()),
      36      643589 :     _dt_old(_ti_feproblem.dtOld()),
      37      643589 :     _is_transient(_ti_feproblem.isTransient()),
      38     1287178 :     _ti_name(MooseUtils::shortName(moose_object->name()))
      39             : {
      40      643589 : }
      41             : 
      42             : #ifdef MOOSE_KOKKOS_ENABLED
      43      200105 : TransientInterface::TransientInterface(const TransientInterface & object,
      44      200105 :                                        const Moose::Kokkos::FunctorCopy &)
      45      200105 :   : _ti_params(object._ti_params),
      46      200105 :     _ti_feproblem(object._ti_feproblem),
      47      200105 :     _is_implicit(object._is_implicit),
      48      200105 :     _t(object._t),
      49      200105 :     _t_old(object._t_old),
      50      200105 :     _t_step(object._t_step),
      51      200105 :     _dt(object._dt),
      52      200105 :     _dt_old(object._dt_old),
      53      200105 :     _is_transient(object._is_transient),
      54      200105 :     _ti_name(object._ti_name)
      55             : {
      56      200105 : }
      57             : #endif
      58             : 
      59      808790 : TransientInterface::~TransientInterface() {}

Generated by: LCOV version 1.14