www.mooseframework.org
Functions | Variables
FEProblemBase.C File Reference

Go to the source code of this file.

Functions

template<>
InputParameters validParams< FEProblemBase > ()
 
std::shared_ptr< PostprocessorgetPostprocessorPointer (std::shared_ptr< MooseObject > mo)
 Small helper function used by addPostprocessor to try to get a Postprocessor pointer from a MooseObject. More...
 
template<typename UO_TYPE , typename PP_TYPE >
PostprocessorgetPostprocessorPointer (UO_TYPE *uo)
 

Variables

Threads::spin_mutex get_function_mutex
 

Function Documentation

std::shared_ptr<Postprocessor> getPostprocessorPointer ( std::shared_ptr< MooseObject mo)

Small helper function used by addPostprocessor to try to get a Postprocessor pointer from a MooseObject.

Definition at line 2451 of file FEProblemBase.C.

2452 {
2453  {
2454  std::shared_ptr<ElementPostprocessor> intermediate =
2455  std::dynamic_pointer_cast<ElementPostprocessor>(mo);
2456  if (intermediate.get())
2457  return std::static_pointer_cast<Postprocessor>(intermediate);
2458  }
2459 
2460  {
2461  std::shared_ptr<NodalPostprocessor> intermediate =
2462  std::dynamic_pointer_cast<NodalPostprocessor>(mo);
2463  if (intermediate.get())
2464  return std::static_pointer_cast<Postprocessor>(intermediate);
2465  }
2466 
2467  {
2468  std::shared_ptr<InternalSidePostprocessor> intermediate =
2469  std::dynamic_pointer_cast<InternalSidePostprocessor>(mo);
2470  if (intermediate.get())
2471  return std::static_pointer_cast<Postprocessor>(intermediate);
2472  }
2473 
2474  {
2475  std::shared_ptr<SidePostprocessor> intermediate =
2476  std::dynamic_pointer_cast<SidePostprocessor>(mo);
2477  if (intermediate.get())
2478  return std::static_pointer_cast<Postprocessor>(intermediate);
2479  }
2480 
2481  {
2482  std::shared_ptr<GeneralPostprocessor> intermediate =
2483  std::dynamic_pointer_cast<GeneralPostprocessor>(mo);
2484  if (intermediate.get())
2485  return std::static_pointer_cast<Postprocessor>(intermediate);
2486  }
2487 
2488  return std::shared_ptr<Postprocessor>();
2489 }
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
template<typename UO_TYPE , typename PP_TYPE >
Postprocessor* getPostprocessorPointer ( UO_TYPE *  uo)

Definition at line 2493 of file FEProblemBase.C.

2494 {
2495  PP_TYPE * intermediate = dynamic_cast<PP_TYPE *>(uo);
2496  if (intermediate)
2497  return static_cast<Postprocessor *>(intermediate);
2498 
2499  return NULL;
2500 }
Base class for all Postprocessors.
Definition: Postprocessor.h:35

Definition at line 109 of file FEProblemBase.C.

Referenced by validParams< EigenProblem >(), and validParams< FEProblem >().

110 {
112  params.addPrivateParam<MooseMesh *>("mesh");
113  params.addParam<unsigned int>("null_space_dimension", 0, "The dimension of the nullspace");
114  params.addParam<unsigned int>(
115  "transpose_null_space_dimension", 0, "The dimension of the transpose nullspace");
116  params.addParam<unsigned int>(
117  "near_null_space_dimension", 0, "The dimension of the near nullspace");
118  params.addParam<bool>("solve",
119  true,
120  "Whether or not to actually solve the Nonlinear system. "
121  "This is handy in the case that all you want to do is "
122  "execute AuxKernels, Transfers, etc. without actually "
123  "solving anything");
124  params.addParam<bool>("use_nonlinear",
125  true,
126  "Determines whether to use a Nonlinear vs a "
127  "Eigenvalue system (Automatically determined based "
128  "on executioner)");
129  params.addParam<bool>("error_on_jacobian_nonzero_reallocation",
130  false,
131  "This causes PETSc to error if it had to reallocate memory in the Jacobian "
132  "matrix due to not having enough nonzeros");
133  params.addParam<bool>("ignore_zeros_in_jacobian",
134  false,
135  "Do not explicitly store zero values in "
136  "the Jacobian matrix if true");
137  params.addParam<bool>("force_restart",
138  false,
139  "EXPERIMENTAL: If true, a sub_app may use a "
140  "restart file instead of using of using the master "
141  "backup file");
142  params.addParam<bool>("skip_additional_restart_data",
143  false,
144  "True to skip additional data in equation system for restart. It is useful "
145  "for starting a transient calculation with a steady-state solution");
146 
147  return params;
148 }
void addPrivateParam(const std::string &name, const T &value)
These method add a parameter to the InputParameters object which can be retrieved like any other para...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
InputParameters validParams< SubProblem >()
Definition: SubProblem.C:26
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
Definition: MooseMesh.h:74
void addParam(const std::string &name, const S &value, const std::string &doc_string)
These methods add an option parameter and a documentation string to the InputParameters object...

Variable Documentation

Threads::spin_mutex get_function_mutex

Definition at line 105 of file FEProblemBase.C.