| 1 |
#%Module |
| 2 |
set name netcdf-fortran |
| 3 |
set version 4.4 |
| 4 |
|
| 5 |
conflict $name |
| 6 |
|
| 7 |
# source common definitions |
| 8 |
source [file dirname $ModulesCurrentModulefile]/../.common |
| 9 |
|
| 10 |
# available software-specific flavors |
| 11 |
set flavorlist [availForFlavorModule serial_hdf5 parallel_hdf5] |
| 12 |
|
| 13 |
# builds available for following compiler and get selected one |
| 14 |
set buildcompiler [availForBuildModule compiler intel/17 intel/15 gcc/4.8 gcc/8 pgi/18] |
| 15 |
|
| 16 |
|
| 17 |
if {[isFlavorEnabled parallel_hdf5]} { |
| 18 |
# builds available for following mpi and get selecled one |
| 19 |
set buildmpi [availForBuildModule mpi openmpi/2.0 intelmpi/17] |
| 20 |
} |
| 21 |
|
| 22 |
# builds available for following lib and get selected one |
| 23 |
set buildhdf5 [availForBuildModule hdf5 hdf5/1.8 hdf5/1.10] |
| 24 |
|
| 25 |
# builds available for following lib and get selected one |
| 26 |
set buildnetcdf [availForBuildModule netcdf netcdf/4.6] |
| 27 |
|
| 28 |
# compute installation path based on selected toolchain and flavors |
| 29 |
set prefix [getInstallPrefix] |
| 30 |
|
| 31 |
|
| 32 |
# set software environment |
| 33 |
prepend-path PATH $prefix/bin |
| 34 |
prepend-path LD_LIBRARY_PATH $prefix/lib |
| 35 |
prepend-path MANPATH $prefix/share/man |