#!/usr/bin/env bash

#edit this line as needed
BGW_BIN="$HOME/BerkeleyGW/bin"

##################################################
CONVERT="$BGW_BIN/mf_convert_wrapper.sh"

wget www.berkeleygw.org/releases/PREBUILT_v10x.tar.bzip2
tar -xjf PREBUILT_v10x.tar.bzip2

#
$CONVERT RHO.asc RHO
$CONVERT WFN.asc WFN
$CONVERT WFNq.asc WFNq
$CONVERT WFN_co.asc WFN_co
$CONVERT WFN_fi.asc WFN_fi
$CONVERT WFNq_fi.asc WFNq_fi
#
ln -s ../PREBUILT/WFN ../07-epsilon
ln -s ../PREBUILT/WFNq ../07-epsilon/WFNq
#
ln -s ../PREBUILT/vxc.dat ../08-sigma
ln -s ../PREBUILT/RHO ../08-sigma
ln -s ../PREBUILT/WFN_co ../08-sigma/WFN_inner
ln -s ../07-epsilon/eps0mat ../08-sigma
ln -s ../07-epsilon/epsmat ../08-sigma
#
ln -s ../PREBUILT/WFN_co ../09-kernel/WFN_co
ln -s ../07-epsilon/eps0mat ../09-kernel
ln -s ../07-epsilon/epsmat ../09-kernel
#
ln -s ../PREBUILT/WFN_co ../10-absorption/WFN_co
ln -s ../PREBUILT/WFN_fi ../10-absorption/WFN_fi
ln -s ../PREBUILT/WFNq_fi ../10-absorption/WFNq_fi
ln -s ../07-epsilon/eps0mat ../10-absorption
ln -s ../07-epsilon/epsmat ../10-absorption
ln -s ../09-kernel/bsedmat ../10-absorption
ln -s ../09-kernel/bsexmat ../10-absorption
#
