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 /****************************************************************/
11 #include "CombinedTestApp.h"
12 // Moose Includes
13 #include "MooseInit.h"
14 #include "Moose.h"
15 #include "MooseApp.h"
16 #include "AppFactory.h"
17 
18 // Create a performance log
19 PerfLog Moose::perf_log("Modules");
20 
21 // Begin the main program.
22 int
23 main(int argc, char * argv[])
24 {
25  // Initialize MPI, solvers and MOOSE
26  MooseInit init(argc, argv);
27 
28  // Register this application's MooseApp and any it depends on
30 
31  // Create an instance of the application and store it in a smart pointer for easy cleanup
32  std::shared_ptr<MooseApp> app = AppFactory::createAppShared("CombinedTestApp", argc, argv);
33 
34  app->setCheckUnusedFlag(true);
35  app->setErrorOverridden();
36 
37  // Execute the application
38  app->run();
39 
40  return 0;
41 }
int main(int argc, char *argv[])
Definition: main.C:18
static void registerApps()