www.mooseframework.org
main.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
8 #include "MooseInit.h"
9 #include "Moose.h"
10 #include "MooseApp.h"
11 #include "AppFactory.h"
12 
13 // Create a performance log
14 PerfLog Moose::perf_log("ChemicalReactions");
15 
16 // Begin the main program.
17 int
18 main(int argc, char * argv[])
19 {
20  // Initialize MPI, solvers and MOOSE
21  MooseInit init(argc, argv);
22 
23  // Register this application's MooseApp and any it depends on
25 
26  // Create an instance of the application and store it in a smart pointer for easy cleanup
27  std::shared_ptr<MooseApp> app =
28  AppFactory::createAppShared("ChemicalReactionsTestApp", argc, argv);
29 
30  app->setCheckUnusedFlag(true);
31  app->setErrorOverridden();
32 
33  // Execute the application
34  app->run();
35 
36  return 0;
37 }
int main(int argc, char *argv[])
Definition: main.C:18