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

[*] improved requirements for petsc

parent 4bb31af1
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -9,7 +9,9 @@ proc ModulesHelp { } {
	global version
        puts stderr "\tSets up the environment for parmetis $version (System gcc-6.3.1)\n"
        puts stderr "\t- PARMETIS_VERSION"
        puts stderr "\t- METIS_VERSION"
        puts stderr "\t- PARMETIS_ROOT"
        puts stderr "\t- METIS_ROOT"
	puts stderr "\t- PARMETIS_BASE"
        puts stderr "\t- PARMETIS_INCDIR"
        puts stderr "\t- PARMETIS_LIBDIR"
@@ -35,6 +37,9 @@ setenv PARMETIS_LIBRARYDIR -L$pkghome/lib/libmetis.so -L$pkghome/lib/libparmeti
setenv		PARMETIS_INCDIR 	$pkghome/include
setenv		PARMEITS_LIBDIR		$pkghome/lib

setenv          METIS_DIR       	$pkghome/parmetis-$version
setenv          PARMETIS_DIR    	$pkghome/parmetis-$version

prepend-path LD_LIBRARY_PATH  $pkghome/lib
prepend-path LD_RUN_PATH      $pkghome/lib
prepend-path PATH             $pkghome/bin
+7 −6
Original line number Diff line number Diff line
#%Module
#
# Petsc 3.6.4 (System gcc-6.1.1)
# Petsc 3.6.4 (System gcc-6.3.1)
#

set	version		3.6.4
proc ModulesHelp { } {
	global version
        puts stderr "\tThis module sets the path and environment variables for petsc-$version (System gcc-6.1.1, System python-2.7)\n"
        puts stderr "\tThis module sets the path and environment variables for petsc-$version (System gcc-6.3.1, System python-2.7)\n"
        puts stderr "\t- PATH"
        puts stderr "\t- PETSC_BASE"
        puts stderr "\t- PETSC_ARCH="
@@ -17,10 +17,11 @@ proc ModulesHelp { } {
        puts stderr "\t- PATH\n"
}

module-whatis   "PETSc - Portable, Extensible Toolkit for Scientific Computation petsc-$version (System gcc-6.1.1, System python-2.7)"
module-whatis   "PETSc - Portable, Extensible Toolkit for Scientific Computation petsc-$version (System gcc-6.3.1, System python-2.7)"

conflict	petsc
prereq	 	mpi/openmpi-x86_64
prereq		parmetis/4.0.3

set             pkghome          /opt/apps/libs/petsc-3.6.4-lite

@@ -32,13 +33,13 @@ setenv PETSC_INCDIR $pkghome/include
setenv		PETSC_LIBDIR     $pkghome/lib
setenv		PETSC_ARCH	""

#setenv          METIS_DIR       /opt/apps/libs/parmetis
#setenv          PARMETIS_DIR    /opt/apps/libs/parmetis
#setenv          METIS_DIR       /opt/apps/libs/parmetis-4.0.3
#setenv          PARMETIS_DIR    /opt/apps/libs/parmetis-4.0.3

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

unset        pkghome

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