#!/usr/bin/env bash

#
ln -s ../../../pseudo/ld1/Si.UPF ./01-scf
#
mkdir ./02-wfn/silicon.save
ln -s ../01-scf/Si.UPF ./02-wfn
ln -s ../../01-scf/silicon.save/data-file.xml ./02-wfn/silicon.save
ln -s ../../01-scf/silicon.save/charge-density.dat ./02-wfn/silicon.save
#
mkdir ./03-wfnq/silicon.save
ln -s ../01-scf/Si.UPF ./03-wfnq/Si.UPF
ln -s ../../01-scf/silicon.save/data-file.xml ./03-wfnq/silicon.save
ln -s ../../01-scf/silicon.save/charge-density.dat ./03-wfnq/silicon.save
#
mkdir ./04-wfn_co/silicon.save
ln -s ../01-scf/Si.UPF ./04-wfn_co/Si.UPF
ln -s ../../01-scf/silicon.save/data-file.xml ./04-wfn_co/silicon.save
ln -s ../../01-scf/silicon.save/charge-density.dat ./04-wfn_co/silicon.save
#
mkdir ./05-wfn_fi/silicon.save
ln -s ../01-scf/Si.UPF ./05-wfn_fi/Si.UPF
ln -s ../../01-scf/silicon.save/data-file.xml ./05-wfn_fi/silicon.save
ln -s ../../01-scf/silicon.save/charge-density.dat ./05-wfn_fi/silicon.save
#
mkdir ./06-wfnq_fi/silicon.save
ln -s ../01-scf/Si.UPF ./06-wfnq_fi
ln -s ../../01-scf/silicon.save/data-file.xml ./06-wfnq_fi/silicon.save
ln -s ../../01-scf/silicon.save/charge-density.dat ./06-wfnq_fi/silicon.save
#
mkdir ./07-wannier/silicon.save
ln -s ../01-scf/Si.UPF ./07-wannier
ln -s ../../01-scf/silicon.save/data-file.xml ./07-wannier/silicon.save
ln -s ../../01-scf/silicon.save/charge-density.dat ./07-wannier/silicon.save
#
ln -s ../ESPRESSO/02-wfn/wfn.real ../07-epsilon/WFN
ln -s ../ESPRESSO/03-wfnq/wfn.real ../07-epsilon/WFNq
#
ln -s ../ESPRESSO/04-wfn_co/vxc.dat ../08-sigma/vxc.dat
ln -s ../ESPRESSO/04-wfn_co/rho.real ../08-sigma/RHO
ln -s ../ESPRESSO/04-wfn_co/wfn.real ../08-sigma/WFN_inner
ln -s ../07-epsilon/eps0mat ../08-sigma
ln -s ../07-epsilon/epsmat ../08-sigma
ln -s ../07-epsilon/eps0mat.h5 ../08-sigma
ln -s ../07-epsilon/epsmat.h5 ../08-sigma
#
ln -s ../ESPRESSO/04-wfn_co/wfn.real ../09-kernel/WFN_co
ln -s ../07-epsilon/eps0mat ../09-kernel
ln -s ../07-epsilon/epsmat ../09-kernel
ln -s ../07-epsilon/eps0mat.h5 ../09-kernel
ln -s ../07-epsilon/epsmat.h5 ../09-kernel
#
ln -s ../ESPRESSO/04-wfn_co/wfn.real ../10-absorption/WFN_co
ln -s ../ESPRESSO/05-wfn_fi/wfn.real ../10-absorption/WFN_fi
ln -s ../ESPRESSO/06-wfnq_fi/wfn.real ../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
ln -s ../07-epsilon/eps0mat.h5 ../10-absorption
ln -s ../07-epsilon/epsmat.h5 ../10-absorption
ln -s ../09-kernel/bsemat.h5 ../10-absorption
#
ln -s ../08-sigma/sigma_hp.log ../11-sig2wan
ln -s ../ESPRESSO/07-wannier/silicon.nnkp ../11-sig2wan
ln -s ../ESPRESSO/07-wannier/silicon.amn ../11-sig2wan
ln -s ../ESPRESSO/07-wannier/silicon.mmn ../11-sig2wan
#
