Ignore:
Timestamp:
12/04/08 17:27:19 (16 years ago)
Author:
aclsce
Message:

Modifications for the use of coupling interface in NEMO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/trunk/IPSLCM5/EXP00/COMP/nemo.driver

    r387 r445  
    1414    fi 
    1515 
    16     ##--Transformation namelist fortran 77 --> fortran 90 
    17     #   ?       ? Is it really necessary ?       ? 
    18     #sed -e /:/d -e s/" \&END"/"\/"/ -e s/" \&"/"\&"/ ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} > ${SUBMIT_DIR}/PARAM/namelist 
    19  
     16# Local function to find namelists parameters 
     17        supergrep () { 
     18            grep "^ *$1 *=" $2 | sed -e "s% *\!.*%%" 
     19        } 
     20         
    2021    ##--Variables used by OPA -- 
    2122 
     
    3233    # nmsh  =1 create a mesh file (coordinates, scale factors, masks) 
    3334 
    34     PAT_NO=$(     grep 'no *='     ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} | grep -v off | grep -v \!) 
    35     PAT_CEXPER=$( grep 'cexper *=' ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} | grep -v \!) 
    36     PAT_NIT000=$( grep 'nit000 *=' ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} | grep -v \!) 
    37     PAT_NITEND=$( grep 'nitend *=' ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} | grep -v \!) 
    38     PAT_NBISEX=$( grep 'nbisex *=' ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE}| sed 's/ nbisex  =//' |sed '/^[ ]$/d'|sed 's/,//' | grep -v \!) 
    39     PAT_NWRITE=$( grep 'nwrite *=' ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} | grep -v \!) 
    40     PAT_RESTAR=$( grep 'ln_rstart *=' ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} | grep -v \!) 
    41     PAT_NSTOCK=$( grep 'nstock *=' ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} | grep -v \!) 
    42     PAT_NRSTAR=$( grep 'nrstdt *=' ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} | grep -v \!) 
    43     PAT_NPRG=$(   grep 'nprg *='   ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} | grep -v \!) 
    44     PAT_NDATE0=$( grep 'ndate0 *=' ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} | grep -v \!) 
    45     PAT_NMSH=$(   grep 'nmsh *='   ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} | grep -v \!)  
    46 #######    PAT_NWRIHF=$( grep 'nwrihf' ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
    47  
    48     ORCA_NSTOCK=$( echo $PAT_NSTOCK | sed "s/[a-z,A-Z,=]//g" ) 
    49     ORCA_RDT=$( egrep 'rdt *=' ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} | sed 's/ *rdt *=//' | sed 's/\.//' | grep -v \!) 
     35            PAT_CEXPER=$( supergrep cexper    ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
     36            PAT_NIT000=$( supergrep nit000    ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
     37            PAT_NITEND=$( supergrep nitend    ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
     38            PAT_NWRITE=$( supergrep nwrite    ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
     39            PAT_RESTAR=$( supergrep ln_rstart ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
     40            PAT_NSTOCK=$( supergrep nstock    ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
     41            PAT_NRSTAR=$( supergrep nrstdt    ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
     42            PAT_NDATE0=$( supergrep ndate0    ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
     43            PAT_NMSH=$(   supergrep nmsh      ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} ) 
     44         
     45            ORCA_NSTOCK=$( echo $PAT_NSTOCK | sed "s/[a-z,A-Z,=]//g" ) 
     46            ORCA_RDT=$( supergrep rdt  ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} | sed 's/ *rdt *=//' | sed 's/\. *,//' ) 
     47 
     48    ##--Transformation namelist fortran 77 --> fortran 90 
     49    #   ?       ? Is it really necessary ?       ? 
     50    #sed -e /:/d -e s/" \&END"/"\/"/ -e s/" \&"/"\&"/ ${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE} > ${SUBMIT_DIR}/PARAM/namelist 
    5051 
    5152    # Period Length In Days between DateBegin and first day of calendar 0001 01 01 
     
    8889            (( ORCA_NWRITE = 0 ))                                                            ;; 
    8990    esac 
    90 ###            (( ORCA_NWRITE = 1 ))  ; 
    91 ###            PREFIX_NWRITE=${config_UserChoices_JobName}_${factor}d ; 
    92 ###            R_OUT_OCE_NWRITE=${R_OUT_OCE_O_D} ; 
    93 ###            R_OUT_ICE_NWRITE=${R_OUT_ICE_O_D} ; 
    94 ###            WF1=${factor}D ; 
    95  
    9691 
    9792    ##--Write Frequency Purpose .... concerning the second opa file type. 
Note: See TracChangeset for help on using the changeset viewer.