source: TOOLS/MOZAIC/util/allwei.job @ 4271

Last change on this file since 4271 was 3326, checked in by omamce, 7 years ago

O.M. : Utility to generate interpolatio weights for OASIS-MCT

  • Property svn:executable set to *
File size: 1.9 KB
Line 
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
15module list
16 
17set -vx
18
19SUBMIT_DIR=${SUBMIT_DIR:-${BRIDGE_MSUB_PWD:-${PWD}}}
20JOB_ID=${BRIDGE_MSUB_JOBID:-${$}}
21
22RESOL=$(basename ${SUBMIT_DIR})
23RESOL_DIR=${SUBMIT_DIR}
24#RESOL=ORCA1xLMD9695
25#RESOL_DIR=${DMFDIR}/CPL/FILES/${RESOL}
26
27TMPDIR=${SCRATCHDIR}/${RESOL}.${JOB_ID}
28mkdir -p ${TMPDIR} || exit 1
29cd ${TMPDIR} || exit 2
30
31echo RESOL : ${RESOL}
32RESOL_OCE=$(echo ${RESOL} | sed 's/x.*//' | sed 's/ORCA//' )
33RESOL_ATM=$(echo ${RESOL} | sed 's/.*x//' | sed 's/LMD//'  )
34echo RESOL OCE : ${RESOL_OCE}
35echo RESOL ATM : ${RESOL_ATM}
36
37# ==============================================
38pwd
39
40cp ${HOME}/CPL/MOZAIC/util/*.sh .
41cp ${HOME}/CPL/MOZAIC/bin/*.exe .
42
43cp ${RESOL_DIR}/run.def .
44cp ${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
52ls -al
53
54time ./allgrid.sh -c ${RESOL}
55time ./mosaic.exe     > mosaic.out      2>&1
56time ./allgrid.sh -c -r ${RESOL}
57#time ./cotes.exe      > cotes.out       2>&1
58time ./cotes_etal.exe > cotes_etal.out  2>&1
59time ./icestream.exe  > icestream.out   2>&1
60time ./tst.exe        > tst.out         2>&1
61time ./tst.exe -r     > tst_r.out       2>&1
62
63date
64
65ls -al
66
67chmod a+r *
68
69cp  *.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
Note: See TracBrowser for help on using the repository browser.