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 
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("ExternalPetscSolver");
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 =
31  AppFactory::createAppShared("ExternalPetscSolverTestApp", argc, argv);
32 
33  // Execute the application
34  app->run();
35 
36  return 0;
37 }
int main(int argc, char *argv[])
Definition: main.C:21