mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
add jenkins script for running Norne case
This commit is contained in:
parent
9e5bc628db
commit
4bea041ec8
@ -29,3 +29,8 @@ and/or opm-output=<pull request number>.
|
|||||||
This script will execute the SPE1, SPE3 and SPE9 cases, then compare against
|
This script will execute the SPE1, SPE3 and SPE9 cases, then compare against
|
||||||
OPM and Eclipse reference results. It is meant to be executed after either
|
OPM and Eclipse reference results. It is meant to be executed after either
|
||||||
of the two build scripts above.
|
of the two build scripts above.
|
||||||
|
|
||||||
|
**run-norne.sh**:
|
||||||
|
This script will execute the Norne case, and generate a document with
|
||||||
|
plots of the results. It is meant to be executed after either
|
||||||
|
of the two build scripts above.
|
||||||
|
@ -15,7 +15,7 @@ function build_opm_autodiff {
|
|||||||
pushd .
|
pushd .
|
||||||
mkdir -p serial/build-ert
|
mkdir -p serial/build-ert
|
||||||
cd serial/build-ert
|
cd serial/build-ert
|
||||||
cmake $WORKSPACE/deps/ert/devel -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$WORKSPACE/serial/install
|
cmake $WORKSPACE/deps/ert/devel -DBUILD_APPLICATIONS=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$WORKSPACE/serial/install
|
||||||
cmake --build . --target install
|
cmake --build . --target install
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
24
jenkins/run-norne.sh
Executable file
24
jenkins/run-norne.sh
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Build flow binary
|
||||||
|
pushd .
|
||||||
|
cd serial/build-opm-autodiff
|
||||||
|
cmake --build . --target flow
|
||||||
|
popd
|
||||||
|
|
||||||
|
# Clone opm-data if necessary
|
||||||
|
pushd .
|
||||||
|
cd deps
|
||||||
|
if ! test -d opm-data
|
||||||
|
then
|
||||||
|
git clone --depth 1 --single-branch -b master https://github.com/OPM/opm-data
|
||||||
|
fi
|
||||||
|
cd opm-data
|
||||||
|
|
||||||
|
# Run the norne case
|
||||||
|
cd norne
|
||||||
|
$WORKSPACE/serial/build-opm-autodiff/bin/flow deck_filename=NORNE_ATW2013.DATA output_dir=OPM
|
||||||
|
test $? -eq 0 || exit 1
|
||||||
|
PATH=$WORKSPACE/serial/install/bin:$PATH ./plotwells.sh
|
||||||
|
|
||||||
|
popd
|
Loading…
Reference in New Issue
Block a user