Commit b7c9d808 authored by Christof Schulze's avatar Christof Schulze 😎 Committed by cschulze
Browse files

[+] added Trilinos Python module PyTrilinos for version 11.14.3

parent d8c31ffb
Loading
Loading
Loading
Loading
+46 −0
Original line number Diff line number Diff line
#%Module
#
# Trilinos 11.14.3
#
set     version      "11.14.3"

proc ModulesHelp { } {
	global version
        puts stderr "\tSets up the environment for the Trilinos ($version) including PyTrilinos and MPI\n"
	puts stderr "\t- TRILINOS_DIR\t- the TRILINOS directory\n"
        puts stderr "\t- TRILINOS_BIN\t- directory where executables can be found\n"
	puts stderr "\t- TRILINOS_LIB\t- directory containing the libraries\n"
	puts stderr "\t- TRILINOS_INC\t- directory containing the header files\n"

	puts stderr "\t- PYTHONPATH\n"
        puts stderr "\t- LD_LIBRARY_PATH\n"
        puts stderr "\t- LD_RUN_PATH\n"

        puts stderr "Use in Python by importing PyTrilinos."
}

module-whatis   "sets up the environment for the Trilinos $version" with MPI and PyTrilinos

prereq		mpi/openmpi-x86_64
conflict	intel
conflict	trilinos

set			pkghome			/opt/apps/trilinos/11.14.3-python-base-mpi

setenv                  TRILINOS_DIR		$pkghome
setenv			TRILINOS_INC		$pkghome/include
setenv                  TRILINOS_LIB       	$pkghome/lib
setenv			TRILINOS_BIN		$pkghome/bin


prepend-path		PATH		$pkghome/bin

prepend-path		LD_LIBRARY_PATH	$pkghome/lib
prepend-path		PYTHONPATH	$pkghome/lib/python2.7/site-packages


unset		pkghome


#source $env(MODULESHOME)/modincludes/info_logging.tcl