-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodule_example
31 lines (25 loc) · 1.11 KB
/
module_example
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
26
27
28
29
30
31
#%Module1.0#####################################################################
##
## tenpy modulefile
##
## Many computing clusters use a `module` system, where one can
## ``module load software-package`` for various software.
## This file provides the definitions for a custom software module for your project.
## To use it, copy this file into a new folder, say $HOME/.module_files, and add that
## folder to the environment variabel $MODULE_PATH in your $HOME/.bashrc:
## export MODULEPATH="$MODULEPATH:$HOME/.module_files"
## Further, adjust the `project_repo` path below
proc ModulesHelp { } {
puts stderr "\tLoads environment variables for custom project"
}
module-whatis "Custom module setup for my project simulations"
# adjust the line below to your path
set project_repo /home/user/path/to/project_git_repo
set tenpy ${project_repo}/TeNPy
module load python/3.7
module load git
# some cluster files systems don't support file locking, you might need the following line
setenv HDF5_USE_FILE_LOCKING FALSE
append-path PYTHONPATH ${tenpy}
append-path PYTHONPATH ${project_repo}
append-path PATH ${project_repo}