https://mooseframework.inl.gov
OptimizationTestApp.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 
10 #include "OptimizationTestApp.h"
11 #include "OptimizationApp.h"
12 #include "Moose.h"
13 #include "AppFactory.h"
14 #include "MooseSyntax.h"
15 
18 {
20  return params;
21 }
22 
23 registerKnownLabel("OptimizationTestApp");
24 
26 {
28  _factory, _action_factory, _syntax, getParam<bool>("allow_test_objects"));
29 }
30 
32 
33 void
35 {
37  if (use_test_objs)
38  {
39  Registry::registerObjectsTo(f, {"OptimizationTestApp"});
40  Registry::registerActionsTo(af, {"OptimizationTestApp"});
41  }
42 }
43 
44 void
46 {
48  registerApp(OptimizationTestApp);
49 }
50 
51 extern "C" void
53 {
55 }
56 extern "C" void
58 {
60 }
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerObjectsTo(Factory &f, const std::set< std::string > &labels)
Syntax _syntax
static void registerActionsTo(ActionFactory &f, const std::set< std::string > &labels)
Real f(Real x)
Test function for Brents method.
ActionFactory _action_factory
static InputParameters validParams()
static void registerApps()
void OptimizationTestApp__registerApps()
OptimizationTestApp(const InputParameters &parameters)
static void registerApps()
void OptimizationTestApp__registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s, bool use_test_objs=false)
Factory _factory
static InputParameters validParams()
registerKnownLabel("OptimizationTestApp")