LCOV - code coverage report
Current view: top level - src/actions - LegacyTensorMechanicsAction.C (source / functions) Hit Total Coverage
Test: idaholab/moose tensor_mechanics: d6b47a Lines: 12 13 92.3 %
Date: 2024-02-27 11:53:14 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://www.mooseframework.org
       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 "LegacyTensorMechanicsAction.h"
      11             : 
      12             : registerMooseAction("TensorMechanicsApp", LegacyTensorMechanicsAction, "setup_mesh_complete");
      13             : 
      14             : registerMooseAction("TensorMechanicsApp",
      15             :                     LegacyTensorMechanicsAction,
      16             :                     "validate_coordinate_systems");
      17             : 
      18             : registerMooseAction("TensorMechanicsApp", LegacyTensorMechanicsAction, "add_kernel");
      19             : 
      20             : InputParameters
      21         814 : LegacyTensorMechanicsAction::validParams()
      22             : {
      23         814 :   InputParameters params = TensorMechanicsAction::validParams();
      24        1628 :   params.addParam<bool>(
      25        1628 :       "use_displaced_mesh", false, "Whether to use displaced mesh in the kernels");
      26         814 :   return params;
      27           0 : }
      28             : 
      29         814 : LegacyTensorMechanicsAction::LegacyTensorMechanicsAction(const InputParameters & params)
      30         814 :   : TensorMechanicsAction(params)
      31             : {
      32         814 : }
      33             : 
      34             : void
      35        2431 : LegacyTensorMechanicsAction::act()
      36             : {
      37        2431 :   if (_current_task == "add_kernel" || _current_task == "validate_coordinate_systems")
      38        1617 :     TensorMechanicsAction::act();
      39        2431 : }

Generated by: LCOV version 1.14