Changeset 2470 for CONFIG/UNIFORM/v6


Ignore:
Timestamp:
04/09/15 17:28:30 (10 years ago)
Author:
jgipsl
Message:

Added cases for iphysiq depending on physics and resolution.
-For AP and NPv3.1 and NPv3.2: exit if the resolution is not predefined.
-For all other physics: take default value in gcm.def

Location:
CONFIG/UNIFORM/v6
Files:
4 edited

Legend:

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

    r2343 r2470  
    416416    # Modification of variable iphysiq depending on the physics 
    417417    if [ X${LMDZ_Physics} = X"AP" ] ; then 
    418         value=10 
    419     else 
     418        if [ ${RESOL_ATM_3D} = 96x95x39 ]; then 
     419            value=10 
     420        elif [ ${RESOL_ATM_3D} = 144x142x39 ]; then 
     421            value=15 
     422        else 
     423            IGCM_debug_Print 1 "LMDZ_Physics=${LMDZ_Physics} has not been tested for the current resolution RESOL_ATM_3D=${RESOL_ATM_3D}. " 
     424            IGCM_debug_Print 1 "iphysiq must be defined for the current combination of resolution and phyiscs package" 
     425            IGCM_debug_Exit "You need to add a special case in lmdz.driver to handle the above combination." 
     426        fi 
     427    elif [ X${LMDZ_Physics} = X"NPv3.1" ] ; then 
     428        if  [ ${RESOL_ATM_3D} = 96x95x39 ] ; then 
     429            value=5 
     430        elif [ ${RESOL_ATM_3D} = 144x142x39 ] ; then 
     431            value=5 
     432        else 
     433            IGCM_debug_Print 1 "LMDZ_Physics=${LMDZ_Physics} has not been tested for the current resolution RESOL_ATM_3D=${RESOL_ATM_3D}. " 
     434            IGCM_debug_Print 1 "iphysiq must be defined for the current combination of resolution and phyiscs package" 
     435            IGCM_debug_Exit "You need to add a special case in lmdz.driver to handle the above combination." 
     436        fi 
     437    elif [ X${LMDZ_Physics} = X"NPv3.2" ] ; then 
     438        if [ ${RESOL_ATM_3D} = 96x95x39 ] ; then 
     439            value=5 
     440        elif [ ${RESOL_ATM_3D} = 144x142x39 ] ; then 
     441            value=5 
     442        elif [ ${RESOL_ATM_3D} = 128x118x39 ] ; then 
     443            value=15 
     444        else 
     445            IGCM_debug_Print 1 "LMDZ_Physics=${LMDZ_Physics} has not been tested for the current resolution RESOL_ATM_3D=${RESOL_ATM_3D}. " 
     446            IGCM_debug_Print 1 "iphysiq must be defined for the current combination of resolution and phyiscs package" 
     447            IGCM_debug_Exit "You need to add a special case in lmdz.driver to handle the above combination." 
     448        fi 
     449    else 
     450        # Take default value set in gcm.def 
    420451        value=DEFAULT 
    421452    fi 
    422453    IGCM_comp_modifyDefFile nonblocker gcm.def iphysiq $value 
    423  
     454     
    424455 
    425456    ## run.def parameters 
  • CONFIG/UNIFORM/v6/IPSLCM6CHT/GENERAL/DRIVER/lmdz.driver

    r2456 r2470  
    416416    # Modification of variable iphysiq depending on the physics 
    417417    if [ X${LMDZ_Physics} = X"AP" ] ; then 
    418         value=10 
    419     else 
     418        if [ ${RESOL_ATM_3D} = 96x95x39 ]; then 
     419            value=10 
     420        elif [ ${RESOL_ATM_3D} = 144x142x39 ]; then 
     421            value=15 
     422        else 
     423            IGCM_debug_Print 1 "LMDZ_Physics=${LMDZ_Physics} has not been tested for the current resolution RESOL_ATM_3D=${RESOL_ATM_3D}. " 
     424            IGCM_debug_Print 1 "iphysiq must be defined for the current combination of resolution and phyiscs package" 
     425            IGCM_debug_Exit "You need to add a special case in lmdz.driver to handle the above combination." 
     426        fi 
     427    elif [ X${LMDZ_Physics} = X"NPv3.1" ] ; then 
     428        if  [ ${RESOL_ATM_3D} = 96x95x39 ] ; then 
     429            value=5 
     430        elif [ ${RESOL_ATM_3D} = 144x142x39 ] ; then 
     431            value=5 
     432        else 
     433            IGCM_debug_Print 1 "LMDZ_Physics=${LMDZ_Physics} has not been tested for the current resolution RESOL_ATM_3D=${RESOL_ATM_3D}. " 
     434            IGCM_debug_Print 1 "iphysiq must be defined for the current combination of resolution and phyiscs package" 
     435            IGCM_debug_Exit "You need to add a special case in lmdz.driver to handle the above combination." 
     436        fi 
     437    elif [ X${LMDZ_Physics} = X"NPv3.2" ] ; then 
     438        if [ ${RESOL_ATM_3D} = 96x95x39 ] ; then 
     439            value=5 
     440        elif [ ${RESOL_ATM_3D} = 144x142x39 ] ; then 
     441            value=5 
     442        elif [ ${RESOL_ATM_3D} = 128x118x39 ] ; then 
     443            value=15 
     444        else 
     445            IGCM_debug_Print 1 "LMDZ_Physics=${LMDZ_Physics} has not been tested for the current resolution RESOL_ATM_3D=${RESOL_ATM_3D}. " 
     446            IGCM_debug_Print 1 "iphysiq must be defined for the current combination of resolution and phyiscs package" 
     447            IGCM_debug_Exit "You need to add a special case in lmdz.driver to handle the above combination." 
     448        fi 
     449    else 
     450        # Take default value set in gcm.def 
    420451        value=DEFAULT 
    421452    fi 
    422453    IGCM_comp_modifyDefFile nonblocker gcm.def iphysiq $value 
    423  
     454     
    424455 
    425456    ## run.def parameters 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6/GENERAL/DRIVER/lmdz.driver

    r2346 r2470  
    416416    # Modification of variable iphysiq depending on the physics 
    417417    if [ X${LMDZ_Physics} = X"AP" ] ; then 
    418         value=10 
    419     else 
     418        if [ ${RESOL_ATM_3D} = 96x95x39 ]; then 
     419            value=10 
     420        elif [ ${RESOL_ATM_3D} = 144x142x39 ]; then 
     421            value=15 
     422        else 
     423            IGCM_debug_Print 1 "LMDZ_Physics=${LMDZ_Physics} has not been tested for the current resolution RESOL_ATM_3D=${RESOL_ATM_3D}. " 
     424            IGCM_debug_Print 1 "iphysiq must be defined for the current combination of resolution and phyiscs package" 
     425            IGCM_debug_Exit "You need to add a special case in lmdz.driver to handle the above combination." 
     426        fi 
     427    elif [ X${LMDZ_Physics} = X"NPv3.1" ] ; then 
     428        if  [ ${RESOL_ATM_3D} = 96x95x39 ] ; then 
     429            value=5 
     430        elif [ ${RESOL_ATM_3D} = 144x142x39 ] ; then 
     431            value=5 
     432        else 
     433            IGCM_debug_Print 1 "LMDZ_Physics=${LMDZ_Physics} has not been tested for the current resolution RESOL_ATM_3D=${RESOL_ATM_3D}. " 
     434            IGCM_debug_Print 1 "iphysiq must be defined for the current combination of resolution and phyiscs package" 
     435            IGCM_debug_Exit "You need to add a special case in lmdz.driver to handle the above combination." 
     436        fi 
     437    elif [ X${LMDZ_Physics} = X"NPv3.2" ] ; then 
     438        if [ ${RESOL_ATM_3D} = 96x95x39 ] ; then 
     439            value=5 
     440        elif [ ${RESOL_ATM_3D} = 144x142x39 ] ; then 
     441            value=5 
     442        elif [ ${RESOL_ATM_3D} = 128x118x39 ] ; then 
     443            value=15 
     444        else 
     445            IGCM_debug_Print 1 "LMDZ_Physics=${LMDZ_Physics} has not been tested for the current resolution RESOL_ATM_3D=${RESOL_ATM_3D}. " 
     446            IGCM_debug_Print 1 "iphysiq must be defined for the current combination of resolution and phyiscs package" 
     447            IGCM_debug_Exit "You need to add a special case in lmdz.driver to handle the above combination." 
     448        fi 
     449    else 
     450        # Take default value set in gcm.def 
    420451        value=DEFAULT 
    421452    fi 
    422453    IGCM_comp_modifyDefFile nonblocker gcm.def iphysiq $value 
    423  
     454     
    424455 
    425456    ## run.def parameters 
  • CONFIG/UNIFORM/v6/LMDZOR_v6/GENERAL/DRIVER/lmdz.driver

    r2342 r2470  
    416416    # Modification of variable iphysiq depending on the physics 
    417417    if [ X${LMDZ_Physics} = X"AP" ] ; then 
    418         value=10 
    419     else 
     418        if [ ${RESOL_ATM_3D} = 96x95x39 ]; then 
     419            value=10 
     420        elif [ ${RESOL_ATM_3D} = 144x142x39 ]; then 
     421            value=15 
     422        else 
     423            IGCM_debug_Print 1 "LMDZ_Physics=${LMDZ_Physics} has not been tested for the current resolution RESOL_ATM_3D=${RESOL_ATM_3D}. " 
     424            IGCM_debug_Print 1 "iphysiq must be defined for the current combination of resolution and phyiscs package" 
     425            IGCM_debug_Exit "You need to add a special case in lmdz.driver to handle the above combination." 
     426        fi 
     427    elif [ X${LMDZ_Physics} = X"NPv3.1" ] ; then 
     428        if  [ ${RESOL_ATM_3D} = 96x95x39 ] ; then 
     429            value=5 
     430        elif [ ${RESOL_ATM_3D} = 144x142x39 ] ; then 
     431            value=5 
     432        else 
     433            IGCM_debug_Print 1 "LMDZ_Physics=${LMDZ_Physics} has not been tested for the current resolution RESOL_ATM_3D=${RESOL_ATM_3D}. " 
     434            IGCM_debug_Print 1 "iphysiq must be defined for the current combination of resolution and phyiscs package" 
     435            IGCM_debug_Exit "You need to add a special case in lmdz.driver to handle the above combination." 
     436        fi 
     437    elif [ X${LMDZ_Physics} = X"NPv3.2" ] ; then 
     438        if [ ${RESOL_ATM_3D} = 96x95x39 ] ; then 
     439            value=5 
     440        elif [ ${RESOL_ATM_3D} = 144x142x39 ] ; then 
     441            value=5 
     442        elif [ ${RESOL_ATM_3D} = 128x118x39 ] ; then 
     443            value=15 
     444        else 
     445            IGCM_debug_Print 1 "LMDZ_Physics=${LMDZ_Physics} has not been tested for the current resolution RESOL_ATM_3D=${RESOL_ATM_3D}. " 
     446            IGCM_debug_Print 1 "iphysiq must be defined for the current combination of resolution and phyiscs package" 
     447            IGCM_debug_Exit "You need to add a special case in lmdz.driver to handle the above combination." 
     448        fi 
     449    else 
     450        # Take default value set in gcm.def 
    420451        value=DEFAULT 
    421452    fi 
    422453    IGCM_comp_modifyDefFile nonblocker gcm.def iphysiq $value 
    423  
     454     
    424455 
    425456    ## run.def parameters 
Note: See TracChangeset for help on using the changeset viewer.