source: CONFIG/LMDZORINCA/tags/LMDZORINCA_v2/EXP_LOI/COMP/inca.driver @ 1625

Last change on this file since 1625 was 1625, checked in by acosce, 12 years ago

Update in EXP_LOI for LMDZORINCA

  • Add JobRunOption? for Vargas
  • Add several directories to find PFTmap
  • Add function INCA_sed to overwrite ${CHEM} by is value (need for TS job)
  • Property svn:executable set to *
File size: 1.4 KB
Line 
1#- $Id: inca.driver 119 2007-07-31 13:56:33Z acosce $
2#!/bin/ksh
3
4#D- Driver du script pour INCA
5#-----------------------------------------------------------------
6function INCA_sed
7{
8    IGCM_debug_PushStack "INCA_sed"
9
10    sed -e "s/${2}/${3}/" ${1} > ${1}.tmp
11    RET=$?
12    echo "INCA_sed : ${1} ${2} ${3}"
13    \mv ${1}.tmp ${1}
14
15    IGCM_debug_PopStack "INCA_sed"
16    return $RET
17}
18
19#-----------------------------------------------------------------
20function CHM_Initialize
21{
22    IGCM_debug_PushStack "CHM_Initialize"
23
24    RESOL_CHM=$( echo $RESOL_ATM | awk "-FD" '{print $2}' )
25    echo 'resol chimie', $RESOL_CHM
26    echo "INCA Tag : LMDZ-INCA" ${config_UserChoices_TagName}
27
28    [ -f ${SUBMIT_DIR}/../.chimie ] && eval $(grep CHEM ${SUBMIT_DIR}/../.chimie) 
29    INCA_sed ${SUBMIT_DIR}/config.card \${CHEM} ${CHEM}
30
31    IGCM_debug_PopStack "CHM_Initialize"
32}
33
34#-----------------------------------------------------------------
35function CHM_Update
36{
37    IGCM_debug_PushStack "CHM_Update"
38    IGCM_debug_PopStack "CHM_Update"
39}
40
41#-----------------------------------------------------------------
42function CHM_Finalize
43{
44    IGCM_debug_PushStack "CHM_Finalize"
45
46    echo FINALIZE CHM !!!
47#
48#    IGCM_sys_Mkdir ${R_OUT_EXE}
49#    cd ${MODIPSL}
50#    tar cf src_${config_UserChoices_JobName}.tar  modeles
51#    IGCM_sys_Mv src_${config_UserChoices_JobName}.tar ${R_OUT_EXE}/.
52#    cd -
53#
54
55    IGCM_debug_PopStack "CHM_Finalize"
56}
Note: See TracBrowser for help on using the repository browser.