Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nek5000
giraffe
Commits
b33afbfe
Commit
b33afbfe
authored
Jan 18, 2018
by
Ron Rahaman
Browse files
Updated MooseApp to MooseAppPtr
parent
55523d6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main.C
View file @
b33afbfe
...
...
@@ -16,14 +16,10 @@ int main(int argc, char *argv[])
// Register this application's MooseApp and any it depends on
GiraffeApp
::
registerApps
();
// This creates dynamic memory that we're responsible for deleting
MooseApp
*
app
=
AppFactory
::
createApp
(
"GiraffeApp"
,
argc
,
argv
);
MooseAppPtr
app
=
AppFactory
::
createAppShared
(
"GiraffeApp"
,
argc
,
argv
);
// Execute the application
app
->
run
();
// Free up the memory we created earlier
delete
app
;
return
0
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment