Ignore:
Timestamp:
10/09/07 14:12:06 (17 years ago)
Author:
aclsce
Message:

AC : - Modified to run on ccrt scalar machine platine

  • Modified to run coupled model either in MPI1 or MPI2 context (now a run_file is used to launch the simulation)
  • Added functions to activate/desactivate runnning environnment variables
File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/trunk/IPSLCM4_v2/EXP00/COMP/oasis.driver

    r153 r162  
    11#!/bin/ksh 
    2  
    32#----------------------------------- 
    43CPL_Initialize () 
     
    98    echo INITIALIZE CPL !!! 
    109 
    11     #D- Default number of processor for lmdz and oasis 
    12     NUM_PROC_ATM=1 ; (( NUM_PROC_OASIS = NUM_PROC_ATM + 2 )) 
    13     #D- Number of processors used for lmdz and oasis coupler computed from PBS variable 
    14     [ -z "${PBS_NUM_PROC_TOT}" ] || { (( NUM_PROC_ATM = PBS_NUM_PROC_TOT - 1 )) ; (( NUM_PROC_OASIS = PBS_NUM_PROC_TOT + 1 )) ; } 
     10#D- MPI context used to launch the coupled model 
     11LIBMPI=$(cat ${SUBMIT_DIR}/../.libmpi) 
     12echo LIBMPI=${LIBMPI} 
    1513 
    16     echo PBS_NUM_PROC_TOT=${PBS_NUM_PROC_TOT} 
    17     echo NUM_PROC_ATM=${NUM_PROC_ATM} 
    18     echo NUM_PROC_OASIS=${NUM_PROC_OASIS} 
     14    IGCM_sys_build_run_file ${LIBMPI} 
    1915 
    2016    IGCM_debug_PopStack "CPL_Initialize" 
     
    2824    IGCM_debug_PushStack "CPL_Update" 
    2925 
    30     ############ Update Time and Counters ############## 
    31     ##-- Calcul de la duree du job (en secondes) 
    32     (( D_JOB_SEC = 3600 * 24 * PeriodLengthInDays )) 
     26############ Update Time and Counters ############## 
     27##-- Calcul de la duree du job (en secondes) 
     28(( D_JOB_SEC = 3600 * 24 * PeriodLengthInDays )) 
    3329 
    34     ############ Update Other Parameters  ############## 
     30############ Update Other Parameters  ############## 
    3531 
    36     ############ Update Parameter Files   ############## 
    37     sed -e "s/<initial_date>/${PeriodDateBegin}/" \ 
    38         -e "s/<total_time>/${D_JOB_SEC}/" \ 
    39         -e "s/<nproc_atm>/${NUM_PROC_ATM}/g" \ 
     32############ Update Parameter Files   ############## 
     33sed -e "s/<initial_date>/${PeriodDateBegin}/" \ 
     34    -e "s/<total_time>/${D_JOB_SEC}/" \ 
     35    -e "s/<lib_mpi>/${LIBMPI}/" \ 
     36    -e "s/<nproc_atm>/${NUM_PROC_ATM}/g" \ 
    4037        namcouple > namcouple.tmp 
    4138 
     
    4845 
    4946    IGCM_debug_PopStack "CPL_Update" 
    50  
    5147} 
    5248 
Note: See TracChangeset for help on using the changeset viewer.