mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-28 06:05:44 -04:00
get MPIF90 from env. added BUILD_MPICH path
This commit is contained in:
parent
5f962f7e4b
commit
0560fdd280
1 changed files with 5 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
source ../libext_utils/cmake.sh
|
||||
|
||||
|
||||
if [[ -z "${MPIF90}" ]]; then
|
||||
if [[ "$FC" = "ftn" ]] ; then
|
||||
MPIF90="ftn"
|
||||
MPICC="cc"
|
||||
|
|
@ -17,6 +18,7 @@ else
|
|||
MPICC=mpicc
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
if [[ -z "${FC}" ]]; then
|
||||
FC=$($MPIF90 -show|cut -d " " -f 1)
|
||||
fi
|
||||
|
|
@ -25,6 +27,9 @@ if [[ -z "${NWCHEM_TOP}" ]]; then
|
|||
dir2=$(dirname "$dir3")
|
||||
NWCHEM_TOP=$(dirname "$dir2")
|
||||
fi
|
||||
if [[ ! -z "${BUILD_MPICH}" ]]; then
|
||||
export PATH=${NWCHEM_TOP}/src/libext/bin:$PATH
|
||||
fi
|
||||
if [[ "$FC" = "ftn" ]] || [[ ! -z "$USE_CMAKE_MASTER" ]] ; then
|
||||
get_cmake_master
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue