module.tmpl 1.12 KB
Newer Older
Matthieu Boileau's avatar
Matthieu Boileau committed
1 2
#%Module1.0#####################################################################
###
3
### {{ LIB_NAME }} {{ LIB_VERSION }} module
Matthieu Boileau's avatar
Matthieu Boileau committed
4 5 6 7
###
proc ModulesHelp { } {
    global version prefix

8
    puts stderr "\ttools/{{ LIB_NAME }}/{{ LIB_VERSION }} - loads {{ LIB_NAME }} {{ LIB_VERSION }} and its environment"
Matthieu Boileau's avatar
Matthieu Boileau committed
9 10
}

11
module-whatis   "Loads {{ LIB_NAME }} {{ LIB_VERSION }} and its environment"
Matthieu Boileau's avatar
Matthieu Boileau committed
12 13

if [module-info mode load]  {
14
  module load gcc/{{ GCC_VERSION }}
Matthieu Boileau's avatar
Matthieu Boileau committed
15 16 17 18 19 20 21 22 23 24
  module load {{ MPI_LIB }}/{{ MPI_VERSION }}_{{ GCC_SHORT }}
  module load hdf5/{{ HDF5_VERSION }}_{{ GCC_SHORT }}_{{ MPI_SHORT }}

}

prereq gcc/{{ GCC_VERSION }}
prereq openmpi/{{ MPI_VERSION }}_{{ GCC_SHORT }}
prereq hdf5/{{ HDF5_VERSION }}_{{ GCC_SHORT }}_{{ MPI_SHORT }}

# for Tcl script use only
25
set prefix      {{ INSTALL_DIR }}
Matthieu Boileau's avatar
Matthieu Boileau committed
26 27 28 29

prepend-path CMAKE_PREFIX_PATH $prefix
prepend-path PATH $prefix/bin
prepend-path LD_LIBRARY_PATH $prefix/lib
30 31 32
prepend-path LD_LIBRARY_PATH $prefix/lib/paraview-{{ LIB_VERSION_SHORT }}
prepend-path PYTHONPATH $prefix/lib/paraview-{{ LIB_VERSION_SHORT }}/site-packages
prepend-path PYTHONPATH $prefix/lib/paraview-{{ LIB_VERSION_SHORT }}/site-packages/vtk