Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nek5000
giraffe
Commits
fc9e8844
Commit
fc9e8844
authored
Oct 07, 2017
by
Ron Rahaman
Browse files
Added verification values for integration_example
parent
f518b39d
Pipeline
#2769
failed with stages
in 101 minutes and 52 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
fc9e8844
...
@@ -2,7 +2,8 @@ stages:
...
@@ -2,7 +2,8 @@ stages:
-
build_libmesh_stage
-
build_libmesh_stage
-
configure_giraffe_stage
-
configure_giraffe_stage
-
build_giraffe_stage
-
build_giraffe_stage
-
test_giraffe_stage
-
run_giraffe_stage
-
verify_giraffe_stage
before_script
:
before_script
:
-
. /opt/moose/environments/moose_profile
-
. /opt/moose/environments/moose_profile
...
@@ -40,8 +41,8 @@ build_giraffe:
...
@@ -40,8 +41,8 @@ build_giraffe:
-
cd examples/integration_example/
-
cd examples/integration_example/
-
make -j8
-
make -j8
test
_giraffe
:
run
_giraffe
:
stage
:
test
_giraffe_stage
stage
:
run
_giraffe_stage
dependencies
:
dependencies
:
-
build_giraffe
-
build_giraffe
variables
:
variables
:
...
@@ -49,5 +50,22 @@ test_giraffe:
...
@@ -49,5 +50,22 @@ test_giraffe:
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
-
../../giraffe-opt -i coefficient_integration.i | tee integration_example.stdout
-
../../giraffe-opt -i coefficient_integration.i | tee integration_example.stdout
-
exit $?
verify_giraffe
:
stage
:
verify_giraffe_stage
dependencies
:
-
run_giraffe
script
:
-
cd examples/integration_example
-
v1=$(grep "Heat balance" integration_example.stdout | tail -1 | tr -s ' ' | cut -d ' ' -f 5)
-
v2=$(grep "Heat balance" integration_example.stdout | tail -1 | tr -s ' ' | cut -d ' ' -f 6)
# We want to test this statement:
# (0.78529 < $v1 < 0.78549) && (0.78203 < $v2 < 0.78203)
# However, bc will return 1 if true, and we want the script to return 0 if successful
# Hence, we test the inverse of that statement. The inverse statement will
# return 0 if the *desired* condition is true.
-
echo "$v1 < 0.78529825617157133 || $v1 > 0.78549825617157133 || $v2 < 0.78203376069904283 || $v2 > 0.78223376069904283" | bc
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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