2020-12-23 12:20:45 -06:00
|
|
|
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
|
|
# libMESH install
|
2021-04-07 17:36:02 -05:00
|
|
|
pushd $HOME
|
2021-01-20 18:15:30 -06:00
|
|
|
mkdir LIBMESH && cd LIBMESH
|
2022-08-29 11:54:23 -05:00
|
|
|
git clone https://github.com/libmesh/libmesh -b v1.7.1 --recurse-submodules
|
2021-01-20 18:15:30 -06:00
|
|
|
mkdir build && cd build
|
|
|
|
|
export METHODS="opt"
|
2021-01-27 09:09:28 -06:00
|
|
|
|
2021-01-27 09:17:40 -06:00
|
|
|
if [[ $MPI == 'y' ]]; then
|
2021-04-07 17:36:02 -05:00
|
|
|
../libmesh/configure --prefix=$HOME/LIBMESH CXX=mpicxx CC=mpicc FC=mpifort F77=mpif77 \
|
|
|
|
|
--enable-exodus --disable-netcdf-4 --disable-eigen --disable-lapack
|
2021-01-27 09:09:28 -06:00
|
|
|
else
|
2021-04-07 17:36:02 -05:00
|
|
|
../libmesh/configure --prefix=$HOME/LIBMESH --enable-exodus --disable-netcdf-4 --disable-eigen --disable-lapack --disable-mpi
|
2021-01-27 09:09:28 -06:00
|
|
|
fi
|
2021-01-20 18:15:30 -06:00
|
|
|
make -j4 install
|
|
|
|
|
rm -rf $HOME/LIBMESH/build
|
2020-12-23 12:20:45 -06:00
|
|
|
|
2021-04-07 17:36:02 -05:00
|
|
|
popd
|