Changeset 2756


Ignore:
Timestamp:
02/25/16 11:41:52 (8 years ago)
Author:
omamce
Message:

O.M. : add consistency check of NEMO decomposition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/opa9.driver

    r2625 r2756  
    4444    (( DaysSinceJC = $( IGCM_date_DaysSinceJC ${DateBegin} ) + 1 )) 
    4545 
     46    # Parallelism 
     47    OCE_PROC_MPI=$(echo ${config_Executable_OCE[2]} | sed s'/MPI//' ) 
     48    OPA_JPNI=$(supergrep jpni  ${NAMELIST_OPA_CFG} ) 
     49    OPA_JPNJ=$(supergrep jpnj  ${NAMELIST_OPA_CFG} ) 
     50    IGCM_debug_Print 1 " " 
     51    IGCM_debug_Print 1 "Readed OPA_JPNI  ${OPA_JPNI}" 
     52    IGCM_debug_Print 1 "Readed OPA_JPNJ  ${OPA_JPNJ}" 
     53    IGCM_debug_Print 1 "OCE_PROC_MPI  ${OCE_PROC_MPI}" 
     54 
     55    (( Residu = OCE_PROC_MPI % OPA_JPNJ )) 
     56    if [[ ${Residu} != 0 ]] ; then 
     57        IGCM_debug_Exit "OCE_PROC_MPI (specified in config.card, [Executable]) is not a multiple of OPA_JPNJ" 
     58        #IGCM_debug_Verif_Exit 
     59    fi 
     60     
     61    (( OPA_JPNI  = OCE_PROC_MPI / OPA_JPNJ )) 
     62    (( OPA_JPNIJ = OPA_JPNI * OPA_JPNJ     )) 
     63    IGCM_debug_Print 1 "Computed OPA_JPNI   ${OPA_JPNI}" 
     64    IGCM_debug_Print 1 "Computed OPA_JPNIJ  ${OPA_JPNIJ}" 
     65 
     66    if [[ ${OCE_PROC_MPI} != ${OPA_JPNIJ} ]] ; then 
     67        IGCM_debug_Exit "OCE_PROC_MPI /= OPA_JPNI * OPA_JPNJ" 
     68        IGCM_debug_Verif_Exit 
     69    fi   
     70 
     71    # 
    4672    IGCM_debug_Print 1 " " 
    4773    IGCM_debug_Print 1 "OPA_RDT        ${OPA_RDT}" 
Note: See TracChangeset for help on using the changeset viewer.