1 | #!/bin/bash |
---|
2 | ###################### |
---|
3 | ## CESIUM CEA ## |
---|
4 | ###################### |
---|
5 | #MSUB -r allwei # Nom du job |
---|
6 | #MSUB -n 1 # Reservation du processus |
---|
7 | #MSUB -N 1 # Reservation du noeud |
---|
8 | #MSUB -T 86400 # Limite de temps elapsed du job |
---|
9 | #MSUB -e allwei.out # Sortie standard |
---|
10 | #MSUB -o allwei.out # Sortie standard |
---|
11 | #MSUB -q xlarge |
---|
12 | #MSUB -Q normal |
---|
13 | #MSUB -p gen2211 |
---|
14 | |
---|
15 | module list |
---|
16 | |
---|
17 | set -vx |
---|
18 | |
---|
19 | SUBMIT_DIR=${SUBMIT_DIR:-${BRIDGE_MSUB_PWD:-${PWD}}} |
---|
20 | JOB_ID=${BRIDGE_MSUB_JOBID:-${$}} |
---|
21 | |
---|
22 | RESOL=$(basename ${SUBMIT_DIR}) |
---|
23 | RESOL_DIR=${SUBMIT_DIR} |
---|
24 | #RESOL=ORCA1xLMD9695 |
---|
25 | #RESOL_DIR=${DMFDIR}/CPL/FILES/${RESOL} |
---|
26 | |
---|
27 | TMPDIR=${SCRATCHDIR}/${RESOL}.${JOB_ID} |
---|
28 | mkdir -p ${TMPDIR} || exit 1 |
---|
29 | cd ${TMPDIR} || exit 2 |
---|
30 | |
---|
31 | echo RESOL : ${RESOL} |
---|
32 | RESOL_OCE=$(echo ${RESOL} | sed 's/x.*//' | sed 's/ORCA//' ) |
---|
33 | RESOL_ATM=$(echo ${RESOL} | sed 's/.*x//' | sed 's/LMD//' ) |
---|
34 | echo RESOL OCE : ${RESOL_OCE} |
---|
35 | echo RESOL ATM : ${RESOL_ATM} |
---|
36 | |
---|
37 | # ============================================== |
---|
38 | pwd |
---|
39 | |
---|
40 | cp ${HOME}/CPL/MOZAIC/util/*.sh . |
---|
41 | cp ${HOME}/CPL/MOZAIC/bin/*.exe . |
---|
42 | |
---|
43 | cp ${RESOL_DIR}/run.def . |
---|
44 | cp ${RESOL_DIR}/orca${RESOL_OCE}.*.nc . |
---|
45 | # cp ${RESOL_DIR}/grids.nc . |
---|
46 | # cp ${RESOL_DIR}/masks.nc . |
---|
47 | # cp ${RESOL_DIR}/areas.nc . |
---|
48 | # cp ${RESOL_DIR}/o2a.diag.nc . |
---|
49 | # cp ${RESOL_DIR}/mozaic.wo2a.* . |
---|
50 | # cp ${RESOL_DIR}/mozaic.wa2o.* . |
---|
51 | |
---|
52 | ls -al |
---|
53 | |
---|
54 | time ./allgrid.sh -c ${RESOL} |
---|
55 | time ./mosaic.exe > mosaic.out 2>&1 |
---|
56 | time ./allgrid.sh -c -r ${RESOL} |
---|
57 | #time ./cotes.exe > cotes.out 2>&1 |
---|
58 | time ./cotes_etal.exe > cotes_etal.out 2>&1 |
---|
59 | time ./icestream.exe > icestream.out 2>&1 |
---|
60 | time ./tst.exe > tst.out 2>&1 |
---|
61 | time ./tst.exe -r > tst_r.out 2>&1 |
---|
62 | |
---|
63 | date |
---|
64 | |
---|
65 | ls -al |
---|
66 | |
---|
67 | chmod a+r * |
---|
68 | |
---|
69 | cp *.out \ |
---|
70 | LMDZ4.0_*_grid.nc \ |
---|
71 | a2o.* o2a.* itarget.nc \ |
---|
72 | areas.nc masks.nc grids.nc \ |
---|
73 | dist_cote.nc flux_iceberg \ |
---|
74 | lmd.*.r8 lmd.*.i4 lmd.*.i8 lmdz.*.nc \ |
---|
75 | mozaic.*.nc mozaic.*r8 \ |
---|
76 | poly.* \ |
---|
77 | ${RESOL_DIR} |
---|
78 | |
---|
79 | # ============================================== |
---|
80 | |
---|