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

[+] petsc : base module with openmpi, hypre based on ptsotch, fftw, blas, lapack, boost, metis

parent 9cea9917
Loading
Loading
Loading
Loading

petsc/3.6.2-default

0 → 100644
+42 −0
Original line number Diff line number Diff line
#%Module
#
# Petsc 3.6.2 (System gcc-5.1)
#
# How to compile boost-python tutorial files: http://stackoverflow.com/questions/1569490/how-can-i-build-the-boost-python-example-on-ubuntu-9-10
#
set	version		3.6.2
proc ModulesHelp { } {
	global version
        puts stderr "\tSets up the environment for Petsc $version (System gcc-5.1, System python-2.7)\n"
        puts stderr "\t- PATH"
        puts stderr "\t- PETSC_BASE"
        puts stderr "\t- PETSC_ARCH="
        puts stderr "\t- PETSC_LIB"
        puts stderr "\t- PETSC_INCLUDEDIR"
        puts stderr "\t- PETSC_LIBRARYDIR"
        puts stderr "\t- LD_LIBRARY_PATH\n"
        puts stderr "\t- LD_RUN_PATH\n"
}

module-whatis   "sets up the environment for Petsc $version (System gcc-5.1, System python-2.7)"

conflict	petsc

set          pkghome          /opt/apps/petsc/3.6.2-default

setenv		PETSC_DIR        $pkghome
setenv		PETSC_BASE       $pkghome
setenv		PETSC_INCLUDEDIR $pkghome/include
setenv		PETSc_LIBRARYDIR $pkghome/lib64
setenv		PETSC_INCDIR     $pkghome/include
setenv		PETSC_LIBDIR     $pkghome/lib64
setenv		PETSC_ARCH	""

#prepend-path LD_LIBRARY_PATH  $pkghome/lib
#prepend-path LD_RUN_PATH      $pkghome/lib
#prepend-path PATH             $pkghome/bin

unset        pkghome

set MSG "Petsc $version (System gcc-5.1, System python-2.7)"
#source $env(MODULESHOME)/modincludes/info_logging.tcl