LCOV - code coverage report
Current view: top level - src/actions - CavityPressureUOAction.C (source / functions) Hit Total Coverage
Test: idaholab/moose solid_mechanics: f45d79 Lines: 0 15 0.0 %
Date: 2025-07-25 05:00:39 Functions: 0 3 0.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 "CavityPressureUOAction.h"
      11             : 
      12             : #include "CavityPressureUserObject.h"
      13             : #include "Factory.h"
      14             : #include "FEProblem.h"
      15             : 
      16             : registerMooseAction("SolidMechanicsApp", CavityPressureUOAction, "add_user_object");
      17             : 
      18             : InputParameters
      19           0 : CavityPressureUOAction::validParams()
      20             : {
      21           0 :   InputParameters params = Action::validParams();
      22           0 :   params += CavityPressureUserObject::validParams();
      23             : 
      24           0 :   ExecFlagEnum exec_enum = MooseUtils::getDefaultExecFlagEnum();
      25           0 :   exec_enum = EXEC_LINEAR;
      26           0 :   params.addParam<ExecFlagEnum>("execute_on", exec_enum, exec_enum.getDocString());
      27           0 :   params.addClassDescription("Action to add user objects for cavity pressure");
      28           0 :   return params;
      29           0 : }
      30             : 
      31           0 : CavityPressureUOAction::CavityPressureUOAction(const InputParameters & params) : Action(params) {}
      32             : 
      33             : void
      34           0 : CavityPressureUOAction::act()
      35             : {
      36           0 :   InputParameters params = _factory.getValidParams("CavityPressureUserObject");
      37             : 
      38           0 :   params.applyParameters(parameters());
      39             : 
      40           0 :   _problem->addUserObject("CavityPressureUserObject", _name + "UserObject", params);
      41           0 : }

Generated by: LCOV version 1.14