New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
NEMO_trust.sh in branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/ARCH/CNRS – NEMO

source: branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/ARCH/CNRS/NEMO_trust.sh @ 5238

Last change on this file since 5238 was 5238, checked in by nicolasmartin, 8 years ago

dev_r5092_CNRS_SETTE

  • Property svn:executable set to *
File size: 1.7 KB
Line 
1#!/bin/bash
2
3
4# Emplacement de la copie de travail NEMO
5#----------------------------------------
6NEMO_DIRE=$HOME/Workspace/NEMO
7
8
9# Configuration centre de calcul (IDRIS/TGCC)
10#--------------------------------------------
11if   [ "$USER" == "${ID_IDRIS}" ]; then
12    ID=${ID_IDRIS}
13   # $HOME $WORKDIR $COMMONDIR $TMPDIR
14    DIR_SCRATCH=$TMPDIR;    #DIR_STORE=$STOREDIR
15    CMD_QUOTA_DISK_ID='quota_u && quota_u -w' #CMD_QUOTA_TIME='not existing'
16        # Commandes LoadLeveler
17    CMD_JOB_SUB=llsubmit                        CMD_JOB_VIEW='llq -u '$ID     CMD_JOB_DEL=llcancel
18elif [ "$USER" == "${ID_TGCC}"  ]; then
19    ID=${ID_TGCC}
20        # $HOME $WORKDIR            $SCRATCHDIR $STOREDIR
21    DIR_SCRATCH=$SCRATCHDIR; DIR_STORE=$STOREDIR
22    CMD_QUOTA_DISK_ID=ccc_quota                CMD_QUOTA_TIME=ccc_myproject
23    CMD_JOB_SUB='ccc_msub' CMD_JOB_VIEW='ccc_mpp -u '$ID CMD_JOB_DEL=ccc_mdel
24else
25    # A voir config local
26fi
27
28export DIR_WORK=$WORKDIR DIR_SCRATCH
29export CMD_QUOTA_DISK_ID CMD_QUOTA_TIME CMD_JOB_SUB CMD_JOB_VIEW CMD_JOB_DEL
30
31
32# Configuration NEMO/XIOS/OASIS (par défaut)
33#-------------------------------------------
34NEMO_BRAN=trunk
35NEMO_HOME=$HOME/Workspace/NEMO/${NEMO_BRAN}/NEMOGCM
36NEMO_FORC=${DIR_WORK}/NEMO/FORC
37export NEMO_BRAN NEMO_HOME NEMO_FORC && . $HOME/Workspace/NEMO/nemo_cfg.env
38
39XIOS_BRAN=xios-1.0
40XIOS_HOME=${DIR_WORK}/XIOS/branchs/${XIOS_BRAN}
41export XIOS_BRAN XIOS_HOME
42
43OASI_HOME=${DIR_WORK}/OASIS
44export OASI_BRAN OASI_HOME
45#env | grep 'NEMO\|XIOS\|OASI' | sort
46
47
48# Test si nouvelle version d'un des codes
49#----------------------------------------
50for dir in ( ${NEMO_HOME}/NEMO ${XIOS_HOME}/src ${OASI_HOME}/lib ); do
51    svn status
52    export NEMO_REVI=`svn info ${NEMO_HOME}/NEMO | awk '(NR == 9) {print $NF}'`
53done
Note: See TracBrowser for help on using the repository browser.