#!/bin/csh
# The variable HYCOMDIR must be set in your .cshrc 
# For this, open ~/.cshrc in your favorite editor and add the line
#   setenv HYCOMDIR ${HOME}/hycom/trunk/hycom
# Or another directory if you want
#
# First specify the machine on which you are working (venus or aster)
set HOST=`hostname`
if (${HOST} =~ hst*****.phys.uu.nl) then
  setenv ARCH mac
else if (${HOST} =~ venus) then
  setenv ARCH venus
else if (${HOST} =~ a1.teras.sara.nl) then
#  setenv ARCH aster
  setenv ARCH huygens
endif

# The location where the raw (coads/levitus) data is located (or must be written if it is not on your system allready)
setenv HYCOM_DATADIR ${HOME}/hycom_datadir

# The location where Hycom must be run
switch(${ARCH}) 
case venus:
  setenv SCRATCHDIR ~/scratch
  breaksw
case mac:
  setenv SCRATCHDIR ~/scratch
  breaksw
case aster:
  setenv SCRATCHDIR ${TMPDIR}/${USER}
  breaksw
case huygens:
  setenv SCRATCHDIR ${TMPDIR}/${USER}
  breaksw
default:
  echo "Architecuture ${ARCH} unknown!"
  exit(1)
endsw

# The directory for short unimportant data storage 
switch(${ARCH}) 
case venus:
  setenv TMPDIR /tmp
  breaksw
case mac:
  setenv TMPDIR /tmp
  breaksw
case aster: # TMPDIR alread set on aster, so we don't set it here.
  breaksw
case huygens: # TMPDIR alread set on huygens, so we don't set it here.
  breaksw
default:
  echo "Architecuture ${ARCH} unknown!"
  exit(1)
endsw

