https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ExecuteMeshGenerators.C
Go to the documentation of this file.
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
11#include "FEProblem.h"
12
13registerMooseAction("MooseApp", ExecuteMeshGenerators, "execute_mesh_generators");
14
21
23
24void
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}
registerMooseAction("MooseApp", ExecuteMeshGenerators, "execute_mesh_generators")
Base class for actions.
Definition Action.h:38
std::shared_ptr< MooseMesh > & _mesh
Definition Action.h:174
static InputParameters validParams()
Definition Action.C:26
MooseApp & _app
The MOOSE application this is associated with.
Definition MooseBase.h:375
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
ExecuteMeshGenerators(const InputParameters &params)
static InputParameters validParams()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
void executeMeshGenerators()
Execute and clear the Mesh Generators data structure.
bool isUltimateMaster() const
Whether or not this app is the ultimate master app.
Definition MooseApp.h:866
bool isRecovering() const
Whether or not this is a "recover" calculation.
Definition MooseApp.C:1669
MeshGeneratorSystem & getMeshGeneratorSystem()
Gets the system that manages the MeshGenerators.
Definition MooseApp.h:886
bool useMasterMesh() const
Returns whether to use the parent app mesh as the mesh for this app.
Definition MooseApp.h:871