#!/usr/bin/env bash

#edit these lines as needed
BGW_BIN="$HOME/BerkeleyGW/bin"

# put argument for number of procs here too if needed, e.g. -n 8
MPIRUN="mpirun"
###############################################################################
EPSILON="$BGW_BIN/epsilon.cplx.x"
SIGMA="$BGW_BIN/sigma.cplx.x"
EQP="$BGW_BIN/eqp.py"
KERNEL="$BGW_BIN/kernel.cplx.x"
ABSORPTION="$BGW_BIN/absorption.cplx.x"
#
cd ./3-epsilon
$MPIRUN $EPSILON &> ./OUT.eps
cd ..
#
cd ./4-sigma
$MPIRUN $SIGMA &> ./OUT.sig
cd ..
#
$EQP eqp1 ./4-sigma/sigma_hp.log ./6-absorption/eqp.dat
#
cd ./5-kernel
$MPIRUN $KERNEL &> ./OUT.krn
cd ..
#
cd ./6-absorption
$MPIRUN $ABSORPTION &> ./OUT.abs
cd ..
#
