forked from humeniuka/DFTBaby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdftbaby_env.sh
26 lines (21 loc) · 1.2 KB
/
dftbaby_env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
#
##############################################################
# This bash script sets the environment variables and paths
# necessary for running DFTBaby. You can source this script
# from your .bashrc profile.
##############################################################
# libxc-library is needed for pseudoatom calculations, you need to modify this path
export LD_LIBRARY_PATH=/local_scratch/humeniuka/software/qc/libxc/lib:$LD_LIBRARY_PATH
export PYTHONUNBUFFERED=1
# increase stack size
export OMP_STACKSIZE=1g
ulimit -s unlimited
# 'root' has to be set to the DFTBaby top directory.
# The following one-liner guesses the installation directory
root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Alternatively you can hardcode the path
#root=$HOME/DFTB-0.1.0
export PYTHONPATH=${root}:$PYTHONPATH
#
export PATH=${root}/DFTB/:${root}/DFTB/Analyse:${root}/DFTB/Analyse/mayavi:${root}/DFTB/Modeling:${root}/DFTB/Dynamics:${root}/DFTB/Dynamics/Analyse:${root}/DFTB/Dynamics/Analyse/Viewer:${root}/DFTB/Format:${root}/DFTB/Scattering:${root}/DFTB/ForceField:${root}/DFTB/MetaDynamics:${root}/DFTB/Poisson:${root}/DFTB/MolecularIntegrals:${root}/DFTB/MultipleScattering:${root}/DFTB/Optimize:$PATH