https://mooseframework.inl.gov
AddOptimizationReporterAction.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 
12 #include "FEProblemBase.h"
13 
14 registerMooseAction("OptimizationApp", AddOptimizationReporterAction, "add_reporter");
15 
18 {
20  params.addClassDescription("Adds OptimizationReporter objects for optimization routines.");
21  return params;
22 }
23 
25  : MooseObjectAction(params)
26 {
27 }
28 
29 void
31 {
32  _problem->addReporter(_type, _name, _moose_object_pars);
33 }
static InputParameters validParams()
AddOptimizationReporterAction(const InputParameters &params)
registerMooseAction("OptimizationApp", AddOptimizationReporterAction, "add_reporter")
const std::string _name
std::string _type
InputParameters _moose_object_pars
void addClassDescription(const std::string &doc_string)
std::shared_ptr< FEProblemBase > & _problem