www.mooseframework.org
ExternalPetscSolverTestApp.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "Moose.h"
12 #include "AppFactory.h"
13 #include "MooseSyntax.h"
14 
17 {
19  return params;
20 }
21 
23  : ExternalPetscSolverApp(parameters)
24 {
26  _factory, _action_factory, _syntax, getParam<bool>("allow_test_objects"));
27 }
28 
30 
31 void
33  ActionFactory & af,
34  Syntax & s,
35  bool use_test_objs)
36 {
38  if (use_test_objs)
39  {
40  Registry::registerObjectsTo(f, {"ExternalPetscSolverTestApp"});
41  Registry::registerActionsTo(af, {"ExternalPetscSolverTestApp"});
42  }
43 }
44 
45 void
47 {
48  registerApp(ExternalPetscSolverApp);
49  registerApp(ExternalPetscSolverTestApp);
50 }
51 
52 /***************************************************************************************************
53  *********************** Dynamic Library Entry Points - DO NOT MODIFY ******************************
54  **************************************************************************************************/
55 // External entry point for dynamic application loading
56 extern "C" void
58 {
60 }
61 extern "C" void
63 {
65 }
void ExternalPetscSolverTestApp__registerApps()
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static InputParameters validParams()
void ExternalPetscSolverTestApp__registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerObjectsTo(Factory &f, const std::set< std::string > &labels)
Syntax _syntax
This is a demo used to demonstrate how to couple an external app through the MOOSE wrapper APP...
static InputParameters validParams()
static void registerAll(Factory &f, ActionFactory &af, Syntax &s, bool use_test_objs=false)
static void registerActionsTo(ActionFactory &f, const std::set< std::string > &labels)
Real f(Real x)
Test function for Brents method.
ActionFactory _action_factory
Factory _factory
ExternalPetscSolverTestApp(InputParameters parameters)