#%Module -*- tcl -*-
# @teragrid-basic environment module file            $Date: 2003/09/24 21:27:11 $
#
# This module file appends the relevant paths in /usr/local to the end
# of $PATH and $MANPATH. If you want the local software suite to be searched
# before the Cray-supplied paths, unload the `@teragrid-basic' module and load the
# `local' module in your .login_user file.
#
# Do not edit this file directly as it is under RCS control.
#
#############################################################################
proc ModulesHelp { } {
puts stderr "The @teragrid-basic modulefile defines the default paths and environment"
puts stderr "variables needed to use the local software and utilities"
puts stderr "available in /usr/local, placing them after the vendor-supplied"
puts stderr "paths in PATH and MANPATH.:"
}

module-whatis "Name: TeraGrid-Basic"
module-whatis "Version: CTSSV 4"
module-whatis "Category: grid"
module-whatis "URL: http://software.teragrid.org/install.htm"
module-whatis "Description: Defines the TeraGrid Basic User Environment"

global env

setenv TG_APPS_PREFIX           /share/apps/teragrid
setenv TG_CLUSTER_HOME          $env(HOME)
setenv TG_NODE_SCRATCH          /tmp
setenv TG_CLUSTER_SCRATCH [string map {share/home scratch} $env(HOME)]
setenv TG_CLUSTER_PFS [string map {share/home scratch} $env(HOME)]
setenv TG_COMMUNITY             /scratch/projects/tg
setenv TG_EXAMPLES              /scratch/projects/tg/tg-examples

#
# Load Desired Modules
#

if { [ expr [module-info mode load] || [module-info mode display] ] } {
        module load gx-map/0.5.3.3
        module load srb-client/3.4.1
        module load tg-policy/0.2
        module load tgproxy/0.9.1
        module load tgresid/2.0.3
        module load tgusage/2.9
}

if [ module-info mode remove ] {
        module del gx-map/0.5.3.3
        module del srb-client/3.4.1
        module del tg-policy/0.2
        module del tgproxy/0.9.1
        module del tgresid/2.0.3
        module del tgusage/2.9
}


