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 "ExternalPetscSolverApp.h"
12 #include "Moose.h"
13 #include "AppFactory.h"
14 #include "MooseSyntax.h"
15 
16 template <>
17 InputParameters
19 {
20  InputParameters params = validParams<ExternalPetscSolverApp>();
21  return params;
22 }
23 
25  : MooseApp(parameters)
26 {
28  _factory, _action_factory, _syntax, getParam<bool>("allow_test_objects"));
29 }
30 
32 
33 void
35  ActionFactory & af,
36  Syntax & s,
37  bool use_test_objs)
38 {
40  if (use_test_objs)
41  {
42  Registry::registerObjectsTo(f, {"ExternalPetscSolverTestApp"});
43  Registry::registerActionsTo(af, {"ExternalPetscSolverTestApp"});
44  }
45 }
46 
47 void
49 {
50  registerApp(ExternalPetscSolverApp);
51  registerApp(ExternalPetscSolverTestApp);
52 }
53 
54 /***************************************************************************************************
55  *********************** Dynamic Library Entry Points - DO NOT MODIFY ******************************
56  **************************************************************************************************/
57 // External entry point for dynamic application loading
58 extern "C" void
59 ExternalPetscSolverTestApp__registerAll(Factory & f, ActionFactory & af, Syntax & s)
60 {
62 }
63 extern "C" void
65 {
67 }
void ExternalPetscSolverTestApp__registerApps()
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
void ExternalPetscSolverTestApp__registerAll(Factory &f, ActionFactory &af, Syntax &s)
This is a demo used to demonstrate how to couple an external app through the MOOSE wrapper APP...
InputParameters validParams< ExternalPetscSolverTestApp >()
static void registerAll(Factory &f, ActionFactory &af, Syntax &s, bool use_test_objs=false)
InputParameters validParams< ExternalPetscSolverApp >()
ExternalPetscSolverTestApp(InputParameters parameters)