GitLab maintenance scheduled for Tomorrow, 2020-08-11, from 17:00 to 18:00 CT - Services will be unavailable during this time.

Commit b5acc7b0 authored by Ron Rahaman's avatar Ron Rahaman

Merge branch 'appfactory-fix' into 'develop'

Updated MooseApp to MooseAppPtr

See merge request nek5000/giraffe!2
parents 55523d6d 81b0dee8
Pipeline #3013 failed with stages
in 116 minutes and 44 seconds
......@@ -54,11 +54,10 @@ run_giraffe_serial_job:
MOOSE_DIR: "$CI_PROJECT_DIR/moose"
LIBMESH_DIR: "$CI_PROJECT_DIR/moose/libmesh/installed"
script:
- set -o pipefail
- cd examples/integration_example
- rm -f *sch
- ../../giraffe-opt -i coefficient_integration.i | tee integration_example_serial.stdout
- exit $?
- rm -f *sch integration_example_serial.stdout
- ../../giraffe-opt -i coefficient_integration.i > integration_example_serial.stdout
- tail -n1000 integration_example_serial.stdout
verify_giraffe_serial_job:
stage: verify_giraffe_serial
......@@ -87,11 +86,10 @@ run_giraffe_parallel_job:
MOOSE_DIR: "$CI_PROJECT_DIR/moose"
LIBMESH_DIR: "$CI_PROJECT_DIR/moose/libmesh/installed"
script:
- set -o pipefail
- cd examples/integration_example
- rm -f *sch
- mpirun -np 4 ../../giraffe-opt -i coefficient_integration.i | tee integration_example_parallel.stdout
- exit $?
- rm -f *sch integration_example_parallel.stdout
- mpirun -np 4 ../../giraffe-opt -i coefficient_integration.i > integration_example_parallel.stdout
- tail -n1000 integration_example_parallel.stdout
verify_giraffe_parallel_job:
stage: verify_giraffe_parallel
......
......@@ -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;
}
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