LCOV - code coverage report
Current view: top level - src/actions - ResolveOptionalMaterialPropertiesAction.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #31730 (e8b711) with base e0c998 Lines: 11 11 100.0 %
Date: 2025-10-29 16:49:47 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 "ResolveOptionalMaterialPropertiesAction.h"
      11             : #include "MaterialPropertyInterface.h"
      12             : #include "MooseApp.h"
      13             : 
      14             : registerMooseAction("MooseApp",
      15             :                     ResolveOptionalMaterialPropertiesAction,
      16             :                     "resolve_optional_materials");
      17             : 
      18             : InputParameters
      19       68904 : ResolveOptionalMaterialPropertiesAction::validParams()
      20             : {
      21       68904 :   InputParameters params = Action::validParams();
      22       68904 :   return params;
      23             : }
      24             : 
      25       68904 : ResolveOptionalMaterialPropertiesAction::ResolveOptionalMaterialPropertiesAction(
      26       68904 :     const InputParameters & params)
      27       68904 :   : Action(params)
      28             : {
      29       68904 : }
      30             : 
      31             : void
      32       62574 : ResolveOptionalMaterialPropertiesAction::act()
      33             : {
      34             :   mooseAssert(_problem, "Problem doesn't exist");
      35             : 
      36      411428 :   for (auto mpi : _app.getInterfaceObjects<MaterialPropertyInterface>())
      37      348854 :     mpi->resolveOptionalProperties();
      38       62574 : }

Generated by: LCOV version 1.14