-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from jimustafa/test-w90-v3
add checks for `wannier90-v3.x` support
- Loading branch information
Showing
7 changed files
with
59 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
WANNIER90_ROOT=$(HOME) | ||
WANNIER90_ROOT=$(HOME)/wannier90/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,36 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
cd "$HOME" | ||
for version in 2.0.1 2.1.0; do | ||
curl http://wannier.org/code/wannier90-${version}.tar.gz | tar xz | ||
WANNIER90_VERSIONS="2.0.1 2.1 3.0.0 3.1.0" | ||
|
||
if [ -z "$WANNIER90_ROOT" ]; then | ||
WANNIER90_ROOT=$HOME/wannier90/ | ||
fi | ||
|
||
mkdir -p $WANNIER90_ROOT/src/ | ||
|
||
pushd $WANNIER90_ROOT | ||
for version in $WANNIER90_VERSIONS; do | ||
pushd $WANNIER90_ROOT/src/ | ||
if [ ! -f "v${version}.tar.gz" ]; then | ||
wget https://github.com/wannier-developers/wannier90/archive/v${version}.tar.gz | ||
fi | ||
popd | ||
|
||
tar zxf ./src/v${version}.tar.gz | ||
|
||
pushd wannier90-${version} | ||
touch make.sys make.inc | ||
F90=gfortran LIBS="-llapack -lblas" make | ||
if [ "$version" == "2.0.1" ]; then | ||
# cp config/make.sys.gfort make.sys | ||
touch make.sys | ||
echo "F90=gfortran" >> make.sys | ||
echo "LIBS=-lblas -llapack" >> make.sys | ||
else | ||
# cp config/make.inc.gfort make.inc | ||
touch make.inc | ||
echo "F90=gfortran" >> make.inc | ||
echo "LIBS=-lblas -llapack" >> make.inc | ||
fi | ||
make | ||
popd | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters