Changeset 4379


Ignore:
Timestamp:
03/28/19 17:04:13 (5 years ago)
Author:
jgipsl
Message:

Added sed to modify output grid parameters depending on NBP resolution. This should be done better in later commmit....

Location:
CONFIG/UNIFORM/v7/ICOLMDZOR_v7/GENERAL/DRIVER
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v7/ICOLMDZOR_v7/GENERAL/DRIVER/lmdz.driver

    r4378 r4379  
    542542    fi 
    543543 
     544 
     545    # Set interpolated output grid depending on resoultion 
     546    if [ ${RESOL_NBP} == 40  ] ; then 
     547       valuei=144 
     548       valuej=143 
     549    elif [ ${RESOL_NBP} == 80  ] ; then 
     550       valuei=360 
     551       valuej=180 
     552    elif [ ${RESOL_NBP} == 160  ] ; then 
     553       valuei=720 
     554       valuej=360 
     555    else 
     556      IGCM_debug_Exit "RESOL_NBP=${RESOL_NBP} is not yet implemented in drivers" 
     557      IGCM_debug_Verif_Exit 
     558    fi 
     559 
     560    IGCM_debug_Print 1 "Modify output grid parameters for current resolution in context_lmdz.xml" 
     561    cp context_lmdz.xml context_lmdz.xml.init 
     562    sed -e "s/ni_glo.*=.*\"144\"/ni_glo=\"${valuei}\"/" \ 
     563        -e "s/nj_glo.*=.*\"143\"/nj_glo=\"${valuej}\"/" \ 
     564        context_lmdz.xml.init > context_lmdz.xml 
     565 
     566 
    544567    IGCM_debug_PopStack "ATM_Update" 
    545568} 
  • CONFIG/UNIFORM/v7/ICOLMDZOR_v7/GENERAL/DRIVER/orchidee.driver

    r4357 r4379  
    181181    fi 
    182182 
     183 
     184 
     185    # Set interpolated output grid depending on resoultion 
     186    if [ ${RESOL_NBP} == 40  ] ; then 
     187       valuei=144 
     188       valuej=143 
     189    elif [ ${RESOL_NBP} == 80  ] ; then 
     190       valuei=360 
     191       valuej=180 
     192    elif [ ${RESOL_NBP} == 160  ] ; then 
     193       valuei=720 
     194       valuej=360 
     195    else 
     196      IGCM_debug_Exit "RESOL_NBP=${RESOL_NBP} is not yet implemented in drivers" 
     197      IGCM_debug_Verif_Exit 
     198    fi 
     199 
     200    IGCM_debug_Print 1 "Modify output grid parameters for current resolution in context_orchidee.xml" 
     201    cp context_orchidee.xml context_orchidee.xml.init 
     202    sed -e "s/ni_glo.*=.*\"144\"/ni_glo=\"${valuei}\"/" \ 
     203        -e "s/nj_glo.*=.*\"143\"/nj_glo=\"${valuej}\"/" \ 
     204        context_orchidee.xml.init > context_orchidee.xml 
     205 
    183206    IGCM_debug_PopStack "SRF_Update" 
    184207} 
Note: See TracChangeset for help on using the changeset viewer.