Commit b5acc7b0 authored by Ron Rahaman's avatar Ron Rahaman
Browse files

Merge branch 'appfactory-fix' into 'develop'

Updated MooseApp to MooseAppPtr

See merge request !2
parents 55523d6d 81b0dee8
Pipeline #3013 failed with stages
in 116 minutes and 44 seconds
...@@ -54,11 +54,10 @@ run_giraffe_serial_job: ...@@ -54,11 +54,10 @@ run_giraffe_serial_job:
MOOSE_DIR: "$CI_PROJECT_DIR/moose" MOOSE_DIR: "$CI_PROJECT_DIR/moose"
LIBMESH_DIR: "$CI_PROJECT_DIR/moose/libmesh/installed" LIBMESH_DIR: "$CI_PROJECT_DIR/moose/libmesh/installed"
script: script:
- set -o pipefail
- cd examples/integration_example - cd examples/integration_example
- rm -f *sch - rm -f *sch integration_example_serial.stdout
- ../../giraffe-opt -i coefficient_integration.i | tee integration_example_serial.stdout - ../../giraffe-opt -i coefficient_integration.i > integration_example_serial.stdout
- exit $? - tail -n1000 integration_example_serial.stdout
verify_giraffe_serial_job: verify_giraffe_serial_job:
stage: verify_giraffe_serial stage: verify_giraffe_serial
...@@ -87,11 +86,10 @@ run_giraffe_parallel_job: ...@@ -87,11 +86,10 @@ run_giraffe_parallel_job:
MOOSE_DIR: "$CI_PROJECT_DIR/moose" MOOSE_DIR: "$CI_PROJECT_DIR/moose"
LIBMESH_DIR: "$CI_PROJECT_DIR/moose/libmesh/installed" LIBMESH_DIR: "$CI_PROJECT_DIR/moose/libmesh/installed"
script: script:
- set -o pipefail
- cd examples/integration_example - cd examples/integration_example
- rm -f *sch - rm -f *sch integration_example_parallel.stdout
- mpirun -np 4 ../../giraffe-opt -i coefficient_integration.i | tee integration_example_parallel.stdout - mpirun -np 4 ../../giraffe-opt -i coefficient_integration.i > integration_example_parallel.stdout
- exit $? - tail -n1000 integration_example_parallel.stdout
verify_giraffe_parallel_job: verify_giraffe_parallel_job:
stage: verify_giraffe_parallel stage: verify_giraffe_parallel
......
...@@ -16,14 +16,10 @@ int main(int argc, char *argv[]) ...@@ -16,14 +16,10 @@ int main(int argc, char *argv[])
// Register this application's MooseApp and any it depends on // Register this application's MooseApp and any it depends on
GiraffeApp::registerApps(); GiraffeApp::registerApps();
// This creates dynamic memory that we're responsible for deleting MooseAppPtr app = AppFactory::createAppShared("GiraffeApp", argc, argv);
MooseApp * app = AppFactory::createApp("GiraffeApp", argc, argv);
// Execute the application // Execute the application
app->run(); app->run();
// Free up the memory we created earlier
delete app;
return 0; return 0;
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment