-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #257 from MengnanLi91/main_update_patch
Clean up main.C and explicitly register dependent app
- Loading branch information
Showing
4 changed files
with
4 additions
and
21 deletions.
There are no files selected for viewing
Submodule moose
updated
2018 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,11 @@ | ||
#include "MoltresApp.h" | ||
#include "MooseInit.h" | ||
#include "Moose.h" | ||
#include "MooseApp.h" | ||
#include "AppFactory.h" | ||
|
||
// Create a performance log | ||
PerfLog Moose::perf_log("Moltres"); | ||
#include "MooseMain.h" | ||
|
||
// Begin the main program. | ||
int | ||
main(int argc, char * argv[]) | ||
{ | ||
// Initialize MPI, solvers and MOOSE | ||
MooseInit init(argc, argv); | ||
|
||
// Register this application's MooseApp and any it depends on | ||
MoltresApp::registerApps(); | ||
|
||
// This creates dynamic memory that we're responsible for deleting | ||
std::shared_ptr<MooseApp> app = AppFactory::createAppShared("MoltresApp", argc, argv); | ||
|
||
// Execute the application | ||
app->run(); | ||
Moose::main<MoltresApp>(argc, argv); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters