LCOV - code coverage report
Current view: top level - src/actions - ExecuteMeshGenerators.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 9 9 100.0 %
Date: 2025-07-17 01:28:37 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 "ExecuteMeshGenerators.h"
      11             : #include "FEProblem.h"
      12             : 
      13             : registerMooseAction("MooseApp", ExecuteMeshGenerators, "execute_mesh_generators");
      14             : 
      15             : InputParameters
      16       61934 : ExecuteMeshGenerators::validParams()
      17             : {
      18       61934 :   InputParameters params = Action::validParams();
      19       61934 :   return params;
      20             : }
      21             : 
      22       61934 : ExecuteMeshGenerators::ExecuteMeshGenerators(const InputParameters & params) : Action(params) {}
      23             : 
      24             : void
      25       61447 : ExecuteMeshGenerators::act()
      26             : {
      27             :   // Don't do mesh generators when recovering as the master app or using master mesh! We do need
      28             :   // to run MeshGenerators for sub-apps because we don't currently have checkpoint/restart
      29             :   // information for the sub-app meshes; e.g. we just need to re-build them
      30      176917 :   if ((_app.isRecovering() && _app.isUltimateMaster()) || _app.useMasterMesh() ||
      31      115470 :       (_mesh && _mesh->isSplit()))
      32        3967 :     return;
      33             : 
      34       57480 :   _app.getMeshGeneratorSystem().executeMeshGenerators();
      35             : }

Generated by: LCOV version 1.14