source: CONFIG/IPSLCM/IPSLCM4_v2/trunk/EXP00/COMP/oasis.driver @ 680

Last change on this file since 680 was 680, checked in by mafoipsl, 12 years ago

MAF : add MPISUSPEND=ON in oasis.driver for libIGCM v_1_3

File size: 1.4 KB
Line 
1#!/bin/ksh
2#-----------------------------------
3CPL_Initialize ()
4{
5
6    IGCM_debug_PushStack "CPL_Initialize"
7 
8    echo INITIALIZE CPL !!!
9
10#D- MPI context used to launch the coupled model
11LIBMPI=$(cat ${SUBMIT_DIR}/../.libmpi)
12echo LIBMPI=${LIBMPI}
13
14    #D- MPISUSPEND=ON required for MPMD mode used by oasis
15    export MPISUSPEND=ON
16
17
18    IGCM_sys_build_run_file ${LIBMPI}
19
20    IGCM_debug_PopStack "CPL_Initialize"
21
22}
23
24#-----------------------------------
25CPL_Update ()
26{
27
28    IGCM_debug_PushStack "CPL_Update"
29
30############ Update Time and Counters ##############
31##-- Calcul de la duree du job (en secondes)
32(( D_JOB_SEC = 3600 * 24 * PeriodLengthInDays ))
33
34############ Update Other Parameters  ##############
35
36############ Update Parameter Files   ##############
37sed -e "s/<initial_date>/${PeriodDateBegin}/" \
38    -e "s/<total_time>/${D_JOB_SEC}/" \
39    -e "s/<lib_mpi>/${LIBMPI}/" \
40    -e "s/<nproc_atm>/${NUM_PROC_ATM}/g" \
41        namcouple > namcouple.tmp
42
43    IGCM_sys_Mv namcouple.tmp namcouple
44    # Unused files we want to remove
45    eval FileToBeDeleted[${#FileToBeDeleted[@]}]=trace
46    eval FileToBeDeleted[${#FileToBeDeleted[@]}]=gweights
47    eval FileToBeDeleted[${#FileToBeDeleted[@]}]=mweights
48    eval FileToBeDeleted[${#FileToBeDeleted[@]}]=anaisout
49
50    IGCM_debug_PopStack "CPL_Update"
51}
52
53#-----------------------------------
54CPL_Finalize ()
55{
56
57    IGCM_debug_PushStack "CPL_Finalize"
58
59    echo FINALIZE CPL !!!
60
61    IGCM_debug_PopStack "CPL_Finalize"
62
63}
Note: See TracBrowser for help on using the repository browser.