source: dynamico_lmdz/aquaplanet/OLD_PHYSIC/RUN_AQUAPLANET_DYNAMICO_LMDZ5/example.sh @ 3978

Last change on this file since 3978 was 3978, checked in by dubos, 8 years ago

DYNAMICO_ESM/OLD_PHYSIC : updated XML/DEF + helper scripts

  • Property svn:executable set to *
File size: 900 bytes
Line 
1#!/bin/bash
2
3function cmd_create()
4{
5    export ESM_ROOT="$PWD/../../"
6    export ARCH=X64_CURIE
7    STORE_ROOT="$STOREDIR/aquaplanet"
8    STORE0L="$STORE_ROOT/ce0l"
9    for DIR in ce0l year01 year02 ; do
10        rm -rf $DIR $STORE_ROOT/$DIR
11    done
12    ./prepare.sh ce0l                                ce0l   "$STORE0L"
13    ./prepare.sh first $STORE0L                      year01 "$STORE_ROOT/year01"
14    ./prepare.sh next  $STORE0L "$STORE_ROOT/year01" year02 "$STORE_ROOT/year02"
15}
16
17function submit_X64_CURIE()
18{
19    EXP=$1 ; shift
20    CMD="ccc_msub $* $EXP/job.sh"
21    MSG=$($CMD)
22    echo "$CMD : $MSG"
23    JOBID=$( echo "$MSG" | awk '{print $NF}' )
24    DEP="-a $JOBID"
25}
26
27function cmd_submit()
28{
29    DEP=""
30    submit_$ARCH ce0l
31    submit_$ARCH year01 $DEP
32    submit_$ARCH year02 $DEP
33}
34
35function cmd_()
36{
37echo
38}
39
40echo "Your command : $0 $*"
41echo "Usage : $0 [create|submit]"
42ARCH=X64_CURIE
43cmd_$1
Note: See TracBrowser for help on using the repository browser.