File: 4.4

package info (click to toggle)
modules 5.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,996 kB
  • sloc: exp: 79,667; sh: 6,142; tcl: 5,895; makefile: 1,478; ansic: 474; python: 272; csh: 202; perl: 47; ruby: 44; lisp: 13
file content (35 lines) | stat: -rw-r--r-- 1,052 bytes parent folder | download | duplicates (4)
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
#%Module
set name netcdf-fortran
set version 4.4

conflict $name

# source common definitions
source [file dirname $ModulesCurrentModulefile]/../.common

# available software-specific flavors
set flavorlist [availForFlavorModule serial_hdf5 parallel_hdf5]

# builds available for following compiler and get selected one
set buildcompiler [availForBuildModule compiler intel/17 intel/15 gcc/4.8 gcc/8 pgi/18]


if {[isFlavorEnabled parallel_hdf5]} {
    # builds available for following mpi and get selecled one
    set buildmpi [availForBuildModule mpi openmpi/2.0 intelmpi/17]
}

# builds available for following lib and get selected one
set buildhdf5 [availForBuildModule hdf5 hdf5/1.8 hdf5/1.10]

# builds available for following lib and get selected one
set buildnetcdf [availForBuildModule netcdf netcdf/4.6]

# compute installation path based on selected toolchain and flavors
set prefix [getInstallPrefix]


# set software environment
prepend-path PATH $prefix/bin
prepend-path LD_LIBRARY_PATH $prefix/lib
prepend-path MANPATH $prefix/share/man