Skip to content

Instantly share code, notes, and snippets.

@friedmud
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save friedmud/9199256 to your computer and use it in GitHub Desktop.
Save friedmud/9199256 to your computer and use it in GitHub Desktop.
libMesh MooseBuild Recipe
cd $LIBMESH_BUILD_AREA
export LIBMESH_DIR=$LIBMESH_BUILD_AREA/libmesh/installed
export METHODS="opt"
export METHOD="opt"
cd libmesh
git clean -fxd
git reset HEAD --hard
git co master
git co -b test
git pull $ssh_url $ref
mkdir -p build
cd build
../configure --with-methods="${METHODS}" --prefix=$LIBMESH_DIR --enable-silent-rules --enable-unique-id --disable-warnings --enable-openmp --enable-default-comm-world
make -j 16
return_code=$?
if(( $return_code != 0)); then
git reset HEAD --hard
git co master
git branch -D test
exit $return_code
fi
make -j 16 install
return_code=$?
if(( $return_code != 0)); then
git reset HEAD --hard
git co master
git branch -D test
exit $return_code
fi
make -j 16 check
return_code=$?
if(( $return_code != 0)); then
git reset HEAD --hard
git co master
git branch -D test
exit $return_code
fi
cd $LIBMESH_BUILD_AREA/moose
git clean -fxd
git reset HEAD --hard
git pull --rebase origin master
cd test
make -j16
./run_tests -c -j16
return_code=$?
cd $LIBMESH_BUILD_AREA/libmesh
git reset HEAD --hard
git co master
git branch -D test
exit $return_code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment