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

[*] some fixes

[+] petsc experimental 3.6.2 module for building new version

parent 4fbd5580
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
@@ -2,23 +2,22 @@
#
# 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 "\tThis module sets the path and environment variables 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_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"
        puts stderr "\t- LD_LIBRARY_PATH"
	puts stderr "\t- PATH"
}

module-whatis   "sets up the environment for Petsc $version (System gcc-5.1, System python-2.7)"
module-whatis   "PETSc - Portable, Extensible Toolkit for Scientific Computation petsc-$version (System gcc-5.1, System python-2.7)"

conflict	petsc

@@ -26,17 +25,16 @@ 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_INCLUDEDIR "-I$pkghome/include"
setenv		PETSC_LIBRARYDIR "-L$pkghome/lib"
setenv		PETSC_INCDIR     $pkghome/include
setenv		PETSC_LIBDIR     $pkghome/lib64
setenv		PETSC_LIBDIR     $pkghome/lib
setenv		PETSC_ARCH	""

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

unset        pkghome

set MSG "Petsc $version (System gcc-5.1, System python-2.7)"
set MSG "petsc-$version (System gcc-5.1, System python-2.7)"
#source $env(MODULESHOME)/modincludes/info_logging.tcl
+40 −0
Original line number Diff line number Diff line
@@ -2,12 +2,11 @@
#
# 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 "\tThis module sets the path and environment variables 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="
@@ -15,10 +14,10 @@ proc ModulesHelp { } {
        puts stderr "\t- PETSC_INCLUDEDIR"
        puts stderr "\t- PETSC_LIBRARYDIR"
        puts stderr "\t- LD_LIBRARY_PATH\n"
        puts stderr "\t- LD_RUN_PATH\n"
        puts stderr "\t- PATH\n"
}

module-whatis   "sets up the environment for Petsc $version (System gcc-5.1, System python-2.7)"
module-whatis   "PETSc - Portable, Extensible Toolkit for Scientific Computation petsc-$version (System gcc-5.1, System python-2.7)"

conflict	petsc

@@ -26,17 +25,16 @@ set pkghome /opt/apps/petsc/3.6.2-mini

setenv		PETSC_DIR        $pkghome
setenv		PETSC_BASE       $pkghome
setenv		PETSC_INCLUDEDIR $pkghome/include
setenv		PETSC_LIBRARYDIR $pkghome/lib64
setenv		PETSC_INCLUDEDIR "-I$pkghome/include"
setenv		PETSC_LIBRARYDIR -L"$pkghome/lib"
setenv		PETSC_INCDIR     $pkghome/include
setenv		PETSC_LIBDIR     $pkghome/lib64
setenv		PETSC_LIBDIR     $pkghome/lib
setenv		PETSC_ARCH	""

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

unset        pkghome

set MSG "Petsc $version (System gcc-5.1, System python-2.7)"
set MSG "petsc-$version (System gcc-5.1, System python-2.7)"
#source $env(MODULESHOME)/modincludes/info_logging.tcl
+10 −12
Original line number Diff line number Diff line
@@ -2,12 +2,11 @@
#
# Petsc 3.4.4 (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.4.4
proc ModulesHelp { } {
	global version
        puts stderr "\tSets up the environment for Petsc $version (System gcc-5.1, System python-2.7)\n"
        puts stderr "\tThis module sets the path and environment variables 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="
@@ -15,10 +14,10 @@ proc ModulesHelp { } {
        puts stderr "\t- PETSC_INCLUDEDIR"
        puts stderr "\t- PETSC_LIBRARYDIR"
        puts stderr "\t- LD_LIBRARY_PATH\n"
        puts stderr "\t- LD_RUN_PATH\n"
        puts stderr "\t- PATH\n"
}

module-whatis   "sets up the environment for Petsc $version (System gcc-5.1, System python-2.7)"
module-whatis   "PETSc - Portable, Extensible Toolkit for Scientific Computation petsc-$version (System gcc-5.1, System python-2.7)"

conflict	petsc

@@ -26,17 +25,16 @@ set pkghome /opt/apps/petsc/3.4.4-default

setenv		PETSC_DIR        $pkghome
setenv		PETSC_BASE       $pkghome
setenv		PETSC_INCLUDEDIR $pkghome/include
setenv		PETSc_LIBRARYDIR $pkghome/lib64
setenv		PETSC_INCLUDEDIR "-I$pkghome/include"
setenv		PETSc_LIBRARYDIR "-L$pkghome/lib"
setenv		PETSC_INCDIR     $pkghome/include
setenv		PETSC_LIBDIR     $pkghome/lib64
setenv		PETSC_LIBDIR     $pkghome/lib
setenv		PETSC_ARCH	""

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

unset        pkghome

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