LCOV - code coverage report
Current view: top level - src/actions - CommonCohesiveZoneAction.C (source / functions) Hit Total Coverage
Test: idaholab/moose solid_mechanics: #31405 (292dce) with base fef103 Lines: 11 13 84.6 %
Date: 2025-09-04 07:57:23 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://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 "CommonCohesiveZoneAction.h"
      11             : #include "CohesiveZoneActionBase.h"
      12             : #include "ActionWarehouse.h"
      13             : 
      14             : registerMooseAction("SolidMechanicsApp", CommonCohesiveZoneAction, "meta_action");
      15             : 
      16             : InputParameters
      17         207 : CommonCohesiveZoneAction::validParams()
      18             : {
      19         207 :   InputParameters params = CohesiveZoneActionBase::validParams();
      20         207 :   params.addClassDescription("Store common cohesive zone paramters");
      21         207 :   return params;
      22           0 : }
      23             : 
      24         207 : CommonCohesiveZoneAction::CommonCohesiveZoneAction(const InputParameters & parameters)
      25         207 :   : Action(parameters)
      26             : {
      27         207 : }
      28             : 
      29             : void
      30         207 : CommonCohesiveZoneAction::act()
      31             : {
      32             :   // check if sub-blocks block are found which will use the common parameters
      33         207 :   auto action = _awh.getActions<CohesiveZoneActionBase>();
      34         207 :   if (action.size() == 0)
      35           0 :     mooseWarning("Common parameters are supplied, but not used in ", parameters().blockLocation());
      36         207 : }

Generated by: LCOV version 1.14