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....

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.