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 | |
---|
3 | function 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 | |
---|
17 | function 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 | |
---|
27 | function cmd_submit() |
---|
28 | { |
---|
29 | DEP="" |
---|
30 | submit_$ARCH ce0l |
---|
31 | submit_$ARCH year01 $DEP |
---|
32 | submit_$ARCH year02 $DEP |
---|
33 | } |
---|
34 | |
---|
35 | function cmd_() |
---|
36 | { |
---|
37 | echo |
---|
38 | } |
---|
39 | |
---|
40 | echo "Your command : $0 $*" |
---|
41 | echo "Usage : $0 [create|submit]" |
---|
42 | ARCH=X64_CURIE |
---|
43 | cmd_$1 |
---|
Note: See
TracBrowser
for help on using the repository browser.