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