source: TOOLS/MOSAIX/Setup.bash

Last change on this file was 5156, checked in by omamce, 4 years ago

O.M. - MOSAIX : chnage shebang line for portability

  • Property svn:keywords set to Date Revision HeadURL Author Id
File size: 1.1 KB
Line 
1#!/usr/bin/env bash
2
3export Bold=$(    tput bold   ) 
4export Unde=$(    tput smul   ) ; export OffUnde=$( tput rmul )
5export Stou=$(    tput smso   ) ; export OffStou=$( tput rmso )
6export Reve=$(    tput rev    ) 
7
8export Black=$(   tput setf 0 )
9export Blue=$(    tput setf 1 )
10export Green=$(   tput setf 2 )
11export Cyan=$(    tput setf 3 )
12export Red=$(     tput setf 4 )
13export Magenta=$( tput setf 5 )
14export Yellow=$(  tput setf 6 )
15export White=$(   tput setf 7 )
16
17export Norm=$(    tput sgr0 )
18
19
20#
21# Defines computer
22# ================
23if [[ $(hostname) = curie* ]] ; then arch=curie ; center=tgcc ; fi
24if [[ $(hostname) = irene* ]] ; then arch=irene ; center=tgcc ; fi
25PROGRAM=$(basename ${0})
26
27case ${arch} in
28    ( irene )
29    set +vx
30    module unload cdo nco ferret
31    module unload netcdf hdf5
32    module load python # /2.7.12
33    module load netcdf/4.3.3.1_hdf5_parallel # Version for XIOS
34    module load nco
35    R_IN=$(ccc_home -u igcmg --cccwork)/IGCM
36    TMPDIR=${SCRATCHDIR}/TMP
37    SUBMIT_DIR=${BRIDGE_MSUB_PWD:-${SUBMIT_DIR}}
38    PROGRAM=${BRIDGE_MSUB_REQNAME}
39    ;;
40    ( * )
41    exit -1
42    ;;
43esac
44
Note: See TracBrowser for help on using the repository browser.