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_ORCA_LIM

    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_MBG ; $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_MBG ; $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_MBG ; $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_MBG ; $RESOL_SRF ; $R_SAVE ; $config_UserChoices_JobName ; $config_UserChoices_TagName ; $YEARS ; $MASTER ; $libIGCM_SX 
    4141#-Q- aix6 # @ queue 
    4242#-Q- sx8mercure #!/bin/ksh 
     
    106106#set -vx  
    107107 
     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# 
     150 
    108151R_ATLAS=ATLAS/SE_${YEARS} 
    109152R_OUT_OCE=${R_SAVE}/OCE 
     
    161204 
    162205# WHILE WAITING FOR A MORE GENERIC SOLUTION 
    163 if ( [ ${config_UserChoices_TagName} = "IPSLCM5" ] || [ ${config_UserChoices_TagName} = "ORCA2_LIM2" ] || [ ${config_UserChoices_TagName} = "ORCA2_LIM2_PISCES" ] ) ; then 
     206if ( [ ${config_UserChoices_TagName} = "IPSLCM5" ] || [ ${config_UserChoices_TagName} = "IPSLCM5A" ] || [ ${config_UserChoices_TagName} = "ORCA2_LIM2" ] || [ ${config_UserChoices_TagName} = "ORCA2_LIM2_PISCES" ] ) ; then 
    164207    IGCM_sys_Get ${R_OUT_OCE}/Analyse/SE/${config_UserChoices_JobName}_SE_${YEARS}_1M_diaptr.nc  ${RUN_DIR} ; 
    165208    atlas -o ${RUN_DIR}/${R_ATLAS}/ZNL   -d -l ${FER_ATLAS}/atlas_l_${RESOL_OCE}_znl.cfg         ${RUN_DIR}/${config_UserChoices_JobName}_SE_${YEARS}_1M_diaptr.nc ; 
     
    180223IGCM_sys_Rm ${config_UserChoices_JobName}_SE_${YEARS}_1M_icemod.nc       
    181224# WHILE WAITING FOR A MORE GENERIC SOLUTION 
    182 if ( [ ${config_UserChoices_TagName} = "IPSLCM5" ] || [ ${config_UserChoices_TagName} = "ORCA2_LIM2" ] || [ ${config_UserChoices_TagName} = "ORCA2_LIM2_PISCES" ] ) ; then 
     225if ( [ ${config_UserChoices_TagName} = "IPSLCM5" ] || [ ${config_UserChoices_TagName} = "IPSLCM5A" ] || [ ${config_UserChoices_TagName} = "ORCA2_LIM2" ] || [ ${config_UserChoices_TagName} = "ORCA2_LIM2_PISCES" ] ) ; then 
    183226    IGCM_sys_Rm ${config_UserChoices_JobName}_SE_${YEARS}_1M_diaptr.nc ;  
    184227fi 
Note: See TracChangeset for help on using the changeset viewer.