Ignore:
Timestamp:
01/25/17 16:46:27 (6 years ago)
Author:
cetlod
Message:

update NEMO_v6 configurations

File:
1 edited

Legend:

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

    r2875 r3096  
    3434{ 
    3535    IGCM_debug_PushStack "OCE_Update" 
     36 
     37 
     38    if [ "${EXPTYPE}" = "ia"   ] ; then 
     39       NbFileInter=${#opa9_UserChoices_ListForcing[*]} 
     40       if [ ${year} -ge ${opa9_UserChoices_YearForcingInit} ] ; then  
     41          year_forcing=${year} 
     42       else 
     43          (( LengthForcing=${opa9_UserChoices_YearForcingEnd} - ${opa9_UserChoices_YearForcingInit} + 1 )) 
     44          (( DiffForcing=${opa9_UserChoices_YearForcingEnd} - ${year} )) 
     45          (( ModuloForcing=${opa9_UserChoices_YearForcingEnd} % ${LengthForcing} )) 
     46          (( year_forcing=${opa9_UserChoices_YearForcingEnd} - ${ModuloForcing} )) 
     47       fi 
     48       (( year_forcing_m1 = ${year_forcing} - 1)) 
     49       (( year_forcing_p1 = ${year_forcing} + 1)) 
     50       (( i = 0 )) 
     51        while [ $i -lt ${NbFileInter} ] ; do 
     52           eval file=${opa9_UserChoices_ListForcing[$i]} 
     53           IGCM_sys_Get ${opa9_UserChoices_R_FORCING}/${file}_${year_forcing_m1}.nc  ${file}_y${year_m1}.nc  
     54           IGCM_sys_Get ${opa9_UserChoices_R_FORCING}/${file}_${year_forcing}.nc     ${file}_y${year}.nc  
     55           IGCM_sys_Get ${opa9_UserChoices_R_FORCING}/${file}_${year_forcing_p1}.nc  ${file}_y${year_p1}.nc  
     56           (( i = i + 1 )) 
     57        done 
     58    fi 
    3659 
    3760    NbFreq=$( echo ${config_OCE_WriteFrequency} | wc -w ) 
Note: See TracChangeset for help on using the changeset viewer.