Ignore:
Timestamp:
04/19/10 14:27:48 (14 years ago)
Author:
mafoipsl
Message:

Adapt libIGCM and jobs to new output Names : ${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName?} if SpaceName? and ExperimentName? are set into config.card. Still working with old types : ${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_JobName}.
More information here : IPSLCM5A?
Add IPSLCM5A into atlas.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_atlas_ORCHIDEE

    r257 r263  
    2222#-Q- sx8brodie # pour recevoir un mail en cas de depassement du temps Elapsed (ou autre pb.) 
    2323#-Q- sx8brodie # @ notification = error 
    24 #-Q- sx8brodie # @ environment  = $POST_DIR ; $SUBMIT_DIR ; $libIGCM ; $R_INIT ; $R_BC ; $StandAlone ; $RESOL_ATM ; $RESOL_OCE ; $RESOL_ICE ; $RESOL_SRF ; $R_SAVE ; $config_UserChoices_JobName ; $config_UserChoices_TagName ; $YEARS ; $MASTER 
     24#-Q- sx8brodie # @ environment  = $POST_DIR ; $SUBMIT_DIR ; $libIGCM ; $R_INIT ; $R_BC ; $StandAlone ; $RESOL_ATM ; $RESOL_OCE ; $RESOL_ICE ; $RESOL_SRF ; $R_SAVE ; $config_UserChoices_JobName ; $config_UserChoices_TagName ; $YEARS ; $MASTER ; $libIGCM_SX 
    2525#-Q- sx8brodie # @ queue 
    2626#-Q- aix6 #!/bin/ksh 
     
    3838#-Q- aix6 # pour recevoir un mail en cas de depassement du temps Elapsed (ou autre pb.) 
    3939#-Q- aix6 # @ notification = error 
    40 #-Q- aix6 # @ environment  = $POST_DIR ; $SUBMIT_DIR ; $libIGCM ; $R_INIT ; $R_BC ; $StandAlone ; $RESOL_ATM ; $RESOL_OCE ; $RESOL_ICE ; $RESOL_SRF ; $R_SAVE ; $config_UserChoices_JobName ; $config_UserChoices_TagName ; $YEARS ; $MASTER 
     40#-Q- aix6 # @ environment  = $POST_DIR ; $SUBMIT_DIR ; $libIGCM ; $R_INIT ; $R_BC ; $StandAlone ; $RESOL_ATM ; $RESOL_OCE ; $RESOL_ICE ; $RESOL_SRF ; $R_SAVE ; $config_UserChoices_JobName ; $config_UserChoices_TagName ; $YEARS ; $MASTER ; $libIGCM_SX 
    4141#-Q- aix6 # @ queue 
    4242#-Q- sx8mercure #!/bin/ksh 
     
    9191#-Q- aix6 export OMP_NUM_THREADS=1 
    9292 
    93 #D- Low level debug : to bypass lib test checks and stack construction 
    94 #D- Default : value from AA_job if any 
    95 DEBUG_debug=${DEBUG_debug:=false} 
    96  
    97 if [ ${DEBUG_debug} = true ] ; then 
    98     echo $RUN_DIR_PATH 
    99     MYWORK=$(echo $HOME | sed -e "s|home|scratchdir|") 
    100     RUN_DIR_PATH=${MYWORK}/IGCM_OUT/${config_UserChoices_TagName}/${config_UserChoices_JobName}/MO2SE.${an_fin} 
    101 fi 
    102  
    10393######################################################################## 
    10494 
     
    115105 
    116106#set -vx  
     107 
     108IGCM_sys_MkdirWork ${RUN_DIR_PATH} 
     109IGCM_sys_Cd ${RUN_DIR_PATH} 
     110 
     111if [ ${StandAlone} = true ] ; then 
     112    CARD_DIR=${SUBMIT_DIR} 
     113else 
     114    CARD_DIR=${RUN_DIR_PATH}/$( basename ${SUBMIT_DIR} ) 
     115    IGCM_sys_Get_Master ${SUBMIT_DIR} ${RUN_DIR_PATH} 
     116fi 
     117# 
     118# First of all 
     119# 
     120IGCM_card_DefineArrayFromSection       ${CARD_DIR}/config.card UserChoices 
     121typeset option 
     122for option in ${config_UserChoices[*]} ; do 
     123    IGCM_card_DefineVariableFromOption ${CARD_DIR}/config.card UserChoices ${option} 
     124done 
     125# 
     126echo 
     127IGCM_debug_Print 1 "DefineArrayFromOption  : config_UserChoices" 
     128IGCM_debug_PrintVariables 3 config_UserChoices_JobName 
     129IGCM_debug_PrintVariables 3 config_UserChoices_LongName 
     130IGCM_debug_PrintVariables 3 config_UserChoices_TagName 
     131IGCM_debug_PrintVariables 3 config_UserChoices_SpaceName 
     132IGCM_debug_PrintVariables 3 config_UserChoices_ExperimentName 
     133IGCM_debug_PrintVariables 3 config_UserChoices_CalendarType 
     134IGCM_debug_PrintVariables 3 config_UserChoices_DateBegin 
     135IGCM_debug_PrintVariables 3 config_UserChoices_DateEnd 
     136IGCM_debug_PrintVariables 3 config_UserChoices_PeriodLength 
     137echo 
     138 
     139#================================== 
     140#R_SAVE : Job output directory 
     141if ( [ ! X${config_UserChoices_SpaceName} = X ] && [ ! X${config_UserChoices_ExperimentName} = X ] ) ; then 
     142    FreeName=$( echo ${config_UserChoices_JobName} | sed 's/.*_//' ) 
     143    R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 
     144    R_DODS=${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 
     145else 
     146    R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 
     147    R_DODS=${config_UserChoices_TagName}/${config_UserChoices_JobName} 
     148fi 
     149# 
    117150 
    118151R_ATLAS=ATLAS/SE_${YEARS} 
Note: See TracChangeset for help on using the changeset viewer.