#%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
