www.mooseframework.org
ExecuteMeshGenerators.C
Go to the documentation of this file.
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 "ExecuteMeshGenerators.h"
11 #include "FEProblem.h"
12 
13 registerMooseAction("MooseApp", ExecuteMeshGenerators, "execute_mesh_generators");
14 
17 {
19  return params;
20 }
21 
23 
24 void
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
31  (_mesh && _mesh->isSplit()))
32  return;
33 
35 }
bool isUltimateMaster() const
Whether or not this app is the ultimate master app.
Definition: MooseApp.h:805
void executeMeshGenerators()
Execute and clear the Mesh Generators data structure.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Base class for actions.
Definition: Action.h:38
static InputParameters validParams()
Definition: Action.C:24
const MooseMesh * masterMesh() const
Returns a pointer to the master mesh.
Definition: MooseApp.h:810
MooseApp & _app
The MOOSE application this is associated with.
Definition: MooseBase.h:84
static InputParameters validParams()
registerMooseAction("MooseApp", ExecuteMeshGenerators, "execute_mesh_generators")
std::shared_ptr< MooseMesh > & _mesh
Definition: Action.h:175
ExecuteMeshGenerators(const InputParameters &params)
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
MeshGeneratorSystem & getMeshGeneratorSystem()
Gets the system that manages the MeshGenerators.
Definition: MooseApp.h:820
bool isRecovering() const
Whether or not this is a "recover" calculation.
Definition: MooseApp.C:1161