#%Module1.0#######################################################
##
##  This sets the user environment for VISIT 2.0.1
##
##
proc ModulesHelp { } {
        
	puts stderr "\t Sets the environment for using 
	puts stderr "\t visit on paratools01 \t. \n"
 	puts stderr "\n\t"
} 

prereq hdf5/1.6.10

catch {set COMPILER $env(COMPILER)}
catch {set COMPILER_VER $env(COMPILER_VER)}
if {![info exists COMPILER] || ![info exists COMPILER_VER]} {
    # we should never get here... _could_ default to loading compiler/gcc?
    puts stderr "\t[module-info name] Load Error: COMPILER env vars were not pro
perly defined"
    break
    exit 1
}
catch {set MPI_VER $env(MPI_VER)}
if {![info exists MPI_VER]} {
    # we should never get here... _could_ default to loading compiler/gcc?
    puts stderr "\t[module-info name] Load Error: MPI env vars were not properly defined"
    break
    exit 1
}


# for Tcl script use only
set     name            overture
set     version         v24
set	prefix		/usr/local/ACTS/$COMPILER-$COMPILER_VER

if {![file exists $prefix]} {
    puts stderr "\t[module-info name] Load Error: $prefix does not exist"
    break
    exit 1
}

set prefix $prefix/overture
setenv HDF $env(HDF5)
setenv APlusPlus $prefix/A++P++-0.8.0/A++/install
setenv Overture $prefix/Overture.$version
setenv LAPACK /usr/lib64
setenv XLIBS /usr
setenv OpenGL /usr
setenv MOTIF /usr
setenv CG $prefix/cg.$version

prepend-path LD_LIBRARY_PATH $env(Overture)/lib
prepend-path LD_LIBRARY_PATH $env(APlusPlus)/lib

prepend-path PATH $env(Overture)/bin
