modules: Add gpaw-setups module

This commit is contained in:
2020-02-14 17:03:18 +01:00
parent f41b947fc5
commit 73c948b25c
3 changed files with 7 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ source_existing ~/.bash_prompt.kuba
# Source lmod module setup # Source lmod module setup
source_existing /usr/share/lmod/lmod/init/profile source_existing /usr/share/lmod/lmod/init/profile
[ -x "$(command -v module)" ] && module use ~/.modules.kuba/ [ -x "$(command -v module)" ] && module use "$HOME/.modules.kuba/"
if [ "$(hostname)" == "kubaDesktop" ] || [ "$(hostname)" == "kubaArch-Laptop" ]; then if [ "$(hostname)" == "kubaDesktop" ] || [ "$(hostname)" == "kubaArch-Laptop" ]; then
GPAW_SETUP_BASE="/home/kuba/gpaw-setups/0.9.20000/" GPAW_SETUP_BASE="/home/kuba/gpaw-setups/0.9.20000/"

View File

@@ -0,0 +1,6 @@
local name = myModuleName()
local version = myModuleVersion()
local root = pathJoin("~/gpaw-setups", version)
prepend_path("GPAW_SETUP_PATH", pathJoin(root, "gpaw-setups-" .. version))
prepend_path("GPAW_SETUP_PATH", pathJoin(root, "gpaw-basis-pvalence-" .. version))