https://mooseframework.inl.gov
ResolveOptionalMaterialPropertiesAction.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 
12 #include "MooseApp.h"
13 
14 registerMooseAction("MooseApp",
16  "resolve_optional_materials");
17 
20 {
22  return params;
23 }
24 
26  const InputParameters & params)
27  : Action(params)
28 {
29 }
30 
31 void
33 {
34  mooseAssert(_problem, "Problem doesn't exist");
35 
37  mpi->resolveOptionalProperties();
38 }
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Base class for actions.
Definition: Action.h:33
static InputParameters validParams()
Definition: Action.C:24
registerMooseAction("MooseApp", ResolveOptionalMaterialPropertiesAction, "resolve_optional_materials")
MooseApp & _app
The MOOSE application this is associated with.
Definition: MooseBase.h:84
An interface for accessing Materials.
This action acts right after all material objects have been constructed.
std::shared_ptr< FEProblemBase > & _problem
Convenience reference to a problem this action works on.
Definition: Action.h:168
const std::vector< T * > & getInterfaceObjects() const
Gets the registered interface objects for a given interface.
Definition: MooseApp.h:1633