-
Notifications
You must be signed in to change notification settings - Fork 1
/
19.12
85 lines (83 loc) · 2.7 KB
/
19.12
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#%Module1.0
# The first line of this file tells Modules that this is a module file.
# DO NOT ALTER IT!
#
# METADATA AND DOCUMENTATION SECTION
#
# This function is part of the Modules help system. You can modify
# the second line if needed, but most products should
# leave this alone.
#
proc ModulesHelp { } {
global product version
puts stderr "This module adds $product/$version to your environment."
}
#
# These variables are used below. The product variable should be set to
# the name of the product and never changed. The version variable will
# be set at install time, so it should be left alone. The conflict line
# prevents multiple versions from being loaded simultaneously. Do not
# change it.
#
set product desimodules
set version 19.12
conflict $product
set desiconda_version 20190804-1.3.0-spec
#
# The line below is another part of the Modules help system. You can
# modify the part in quotes if you really need to, but most products should
# leave this alone.
#
module-whatis "Sets up $product/$version in your environment."
#
# ENVIRONMENT SECTION
#
# The PRODUCT_ROOT and PRODUCT_DIR variables are used to set other
# environment variables but are not exported to the actual environment.
# If you are not working at NERSC, but still want to use Modules, you
# will need to set the DESI_PRODUCT_ROOT environment variable
#
if {[info exists env(DESI_PRODUCT_ROOT)]} {
set code_root $env(DESI_PRODUCT_ROOT)/code
} else {
set code_root /global/common/software/desi/$env(NERSC_HOST)/desiconda/$desiconda_version/code
}
set PRODUCT_DIR /global/common/software/desi/$env(NERSC_HOST)/desiconda/startup/modulefiles/$product
#
# This line creates an environment variable pointing to the install
# directory of your product.
#
setenv [string toupper $product] $PRODUCT_DIR
setenv [string toupper $product]_VERSION $version
#
# desiconda contains the external products that we need for most DESI work.
# The value of $desiconda_version, defined above, may change depending
# on system, e.g. cori v. datatran.
#
if { [info exists env(NERSC_HOST)] } {
set desiconda_modules_root [string map {/code /modulefiles} $code_root]
module use $desiconda_modules_root
module load desiconda/$desiconda_version
prereq desiconda
}
#
# DESI-specific modules
#
module load desiutil/2.0.1
prereq desiutil
module load desitree/0.5.0
prereq desitree
module load specter/0.9.1
module load desimodel/0.10.3
module load specex/0.6.5
module load desitarget/0.35.2
module load specsim/v0.13
module load desispec/0.32.1
module load desisim/0.34.2
module load fiberassign/1.3.0
module load desisurvey/0.12.1
module load surveysim/0.11.0
module load redrock/0.14.2
module load redrock-templates/0.7
module load simqso/v1.2.3
module load dust/v0_1