Changeset 902


Ignore:
Timestamp:
02/17/10 16:05:19 (12 years ago)
Author:
aclsce
Message:

Modifications to run on titane (Xeon CCRT machine)

  • Added titane as target machine for NEMO compilation options
  • Added chmod when Bands file is get from archive directory
  • Replaced "compname" variable by explicit variable i.e lmdz, opa9, oasis in *.driver.
Location:
CONFIG/IPSLCM/IPSLCM5/branches/IPSLCM5_v2
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/IPSLCM/IPSLCM5/branches/IPSLCM5_v2/EXP00/COMP/lmdz.driver

    r894 r902  
    7070    PAT_day_step=$(  grep -v ^# ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM_3D} | grep day_step ) 
    7171 
    72     ## Read LMDZ_NbPeriod_adjust option in ${compname}.card  
    73     IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices LMDZ_NbPeriod_adjust 
    74     eval LMDZ_NbPeriod_adjust=\${${compname}_UserChoices_LMDZ_NbPeriod_adjust} > /dev/null 2>&1 
     72    ## Read LMDZ_NbPeriod_adjust option in lmdz.card  
     73    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices LMDZ_NbPeriod_adjust 
     74    eval LMDZ_NbPeriod_adjust=\${lmdz_UserChoices_LMDZ_NbPeriod_adjust} > /dev/null 2>&1 
    7575 
    7676    if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 
    77         IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices LMDZ_Bands_file_name 
    78         eval LMDZ_Bands_file_name=\${${compname}_UserChoices_LMDZ_Bands_file_name} > /dev/null 2>&1 
     77        IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices LMDZ_Bands_file_name 
     78        eval LMDZ_Bands_file_name=\${lmdz_UserChoices_LMDZ_Bands_file_name} > /dev/null 2>&1 
    7979    fi 
    8080 
     
    127127    if [ ${CumulPeriod} -eq 1 ] ; then 
    128128        if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 
    129             IGCM_sys_Get ${LMDZ_Bands_file_name} Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat 
     129            IGCM_sys_Get ${LMDZ_Bands_file_name} Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat ; IGCM_sys_Chmod u+w Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat 
    130130            IGCM_sys_Put_Out Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat_0 
    131131            IGCM_debug_Print 1 "Bands file forced to ${LMDZ_Bands_file_name} and stored in ${config_UserChoices_JobName}_Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat_0" 
     
    139139    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && (( RefPeriod = ${CumulPeriod} - 1 ))  
    140140 
    141     [ ${CumulPeriod} -gt 1 ] && IGCM_sys_Get ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat_${RefPeriod} Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat 
     141    [ ${CumulPeriod} -gt 1 ] && ( IGCM_sys_Get ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat_${RefPeriod} Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat ; IGCM_sys_Chmod u+w Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat ) 
    142142 
    143143    ## Mise en forme du fichier physiq.def 
     
    169169    IGCM_sys_Mv run.def.tmp run.def 
    170170 
    171     ## Read ByPass_hgardfou_teta option in ${compname}.card --> divide teta* by 2 if [ $ByPass_hgardfou_teta = 1 ] 
    172     IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices ByPass_hgardfou_teta 
    173     eval ByPass_hgardfou_teta=\${${compname}_UserChoices_ByPass_hgardfou_teta} > /dev/null 2>&1 
     171    ## Read ByPass_hgardfou_teta option in lmdz.card --> divide teta* by 2 if [ $ByPass_hgardfou_teta = 1 ] 
     172    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices ByPass_hgardfou_teta 
     173    eval ByPass_hgardfou_teta=\${lmdz_UserChoices_ByPass_hgardfou_teta} > /dev/null 2>&1 
    174174    if [ ${ByPass_hgardfou_teta} = y ] ; then 
    175175        awk '{ if ($0 ~ /^teta.*=/) {split($0,a,"=") ; print a[1]"="a[2]/2"."} else print $0}' gcm.def > gcm.def.tmp 
     
    180180        cat gcm.def 
    181181        ByPass_hgardfou_teta=n 
    182         IGCM_card_WriteOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices ByPass_hgardfou_teta "${ByPass_hgardfou_teta}" 
    183     fi 
    184  
    185     ## Read ByPass_hgardfou_mats option in ${compname}.card --> purmats=y 2 if [ $ByPass_hgardfou_mats = 1 ] 
    186     IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices ByPass_hgardfou_mats 
    187     eval ByPass_hgardfou_mats=\${${compname}_UserChoices_ByPass_hgardfou_mats} > /dev/null 2>&1 
     182        IGCM_card_WriteOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices ByPass_hgardfou_teta "${ByPass_hgardfou_teta}" 
     183    fi 
     184 
     185    ## Read ByPass_hgardfou_mats option in lmdz.card --> purmats=y 2 if [ $ByPass_hgardfou_mats = 1 ] 
     186    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices ByPass_hgardfou_mats 
     187    eval ByPass_hgardfou_mats=\${lmdz_UserChoices_ByPass_hgardfou_mats} > /dev/null 2>&1 
    188188    if [ ${ByPass_hgardfou_mats} = y ] ; then 
    189189        sed -e "s/^purmats=.*/purmats=y/" gcm.def > gcm.def.tmp 
     
    194194        cat gcm.def 
    195195        ByPass_hgardfou_mats=n 
    196         IGCM_card_WriteOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices ByPass_hgardfou_mats "${ByPass_hgardfou_mats}" 
     196        IGCM_card_WriteOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices ByPass_hgardfou_mats "${ByPass_hgardfou_mats}" 
    197197    fi 
    198198 
  • CONFIG/IPSLCM/IPSLCM5/branches/IPSLCM5_v2/EXP00/COMP/oasis.driver

    r814 r902  
    5454 
    5555    ############ Update Other Parameters  ############## 
    56     ## Read Output_mode option in ${compname}.card --> Put "y" to have coupling variables in ouptut files 
     56    ## Read Output_mode option in oasis.card --> Put "y" to have coupling variables in ouptut files 
    5757    CPL_OutputMode="n" 
    58     IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices OutputMode  
    59     eval CPL_OutputMode=\${${compname}_UserChoices_OutputMode} > /dev/null 2>&1 
     58    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/oasis.card UserChoices OutputMode  
     59    eval CPL_OutputMode=\${oasis_UserChoices_OutputMode} > /dev/null 2>&1 
    6060    echo CPL_OutputMode = ${CPL_OutputMode} 
    6161    CPL_OutputVar='EXPORTED' 
  • CONFIG/IPSLCM/IPSLCM5/branches/IPSLCM5_v2/EXP00/COMP/opa9.driver

    r819 r902  
    187187 
    188188    ##-- Meshmask option 
    189     IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices mesh_mask 
     189    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/opa9.card UserChoices mesh_mask 
    190190 
    191191    if [ "${opa9_UserChoices_mesh_mask}" = "y" ]; then 
    192192        ORCA_NMSH=1 
    193         IGCM_card_WriteOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices mesh_mask "n" 
     193        IGCM_card_WriteOption ${SUBMIT_DIR}/COMP/opa9.card UserChoices mesh_mask "n" 
    194194    fi 
    195195 
  • CONFIG/IPSLCM/IPSLCM5/branches/IPSLCM5_v2/scripts/BB_make

    r821 r902  
    1010#-Q- platine F_O = -O3 -i4 -r8 -module $(MODDIR)/oce -I$(MODDIR) -I$(MODDIR)/oce -I$(NCDF_INC) $(USER_INC)  
    1111#-Q- platine L_X = $(L_O)  
     12#-Q- titane # Compiler options NEMO (CCRT Xeon Bull) 
     13#-Q- titane F_O = -O3 -i4 -r8 -module $(MODDIR)/oce -I$(MODDIR) -I$(MODDIR)/oce -I$(NCDF_INC) $(USER_INC) 
     14#-Q- titane L_X = $(L_O) 
    1215#-Q- sx8mercure  # Compiler options NEMO (CCRT SX8-NEC)  
    1316#-Q- sx8mercure  F_O = -f2003 nocbind -size_t64 -dw -Wf\"-A dbl4\" -sx8 -C vopt -P stack -Wf"-init stack=nan" -Wl"-f nan" -Wf"-P nh -O overlap" -Wf"-P nh" -Wf,-pvctl noassume loopcnt=10000 shape=10000000 -L transform -I $(MODDIR) -I $(MODDIR)/oce -I $(NCDF_INC) $(USER_INC)  
  • CONFIG/IPSLCM/IPSLCM5/branches/IPSLCM5_v2/scripts/BB_make.ldef

    r786 r902  
    1919#- Prefix for preprocessing --- 
    2020#-Q- platine prefix = -Wp,-D 
     21#-Q- titane prefix = -Wp,-D 
    2122#-Q- sx8mercure prefix = -D 
    2223#-Q- sx9mercure prefix = -D 
Note: See TracChangeset for help on using the changeset viewer.