Codebase list votca-xtp / upstream/1.6.2 tutorials / tools / dftgwbse_CO_geoopt / run.sh
upstream/1.6.2

Tree @upstream/1.6.2 (Download .tar.gz)

run.sh @upstream/1.6.2raw · history · blame

#!/bin/bash

#convienience function to change xml option
changeoption(){
    sed -i "s&<${1}.*>.*</${1}>&<${1}>${2}</${1}>&" $3
}
#convienience function to delete xml option
deleteoption(){
 sed -i "s&<${1}.*>.*</${1}>&&" $2
}


cp $VOTCASHARE/xtp/xml/dftgwbse.xml .
cp $VOTCASHARE/xtp/packages/xtpdft.xml .
cp $VOTCASHARE/xtp/packages/gwbse.xml .
changeoption gwbse_options gwbse.xml dftgwbse.xml
changeoption dftpackage xtpdft.xml dftgwbse.xml
changeoption mode optimize dftgwbse.xml
changeoption molecule CO.xyz dftgwbse.xml
changeoption dftlog system_dft.orb dftgwbse.xml
changeoption shift_type evGW gwbse.xml
changeoption ranges full gwbse.xml
echo "Running dft + gwbse, output can be found in dftgwbse.log"
xtp_tools -e dftgwbse -o dftgwbse.xml -t 4 > dftgwbse.log