New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 13799 for NEMO/branches/2020/dev_r13787_SI3-10_EAP/src – NEMO

Ignore:
Timestamp:
2020-11-16T12:04:05+01:00 (4 years ago)
Author:
acc
Message:

Branch dev_r13787_SI3-10_EAP. Tidying up. Removing some commented debug statements and applying do loop macros consistently

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r13787_SI3-10_EAP/src/ICE/icedyn_rhg_eap.F90

    r13797 r13799  
    430430               &   + zds(ji,jj-1) * e1e2f(ji,jj-1) + zds(ji-1,jj-1) * e1e2f(ji-1,jj-1)  & 
    431431               &   ) * 0.25_wp * r1_e1e2t(ji,jj) 
    432             !WRITE(numout,*) 'shear output', ji, jj, zdsT 
    433432             
    434433           ! divergence at T points (duplication to avoid communications) 
     
    447446 
    448447            ! structure tensor update 
    449 !!$               IF (mod(jter,10) == 0) THEN 
    450448               CALL calc_ffrac(zstressptmp, zstressmtmp, zstress12tmp(ji,jj), paniso_11(ji,jj), paniso_12(ji,jj), zmresult11,  zmresult12) 
    451449 
    452 !!$                  paniso_11(ji,jj) = (paniso_11(ji,jj)*z1_dtevp_A  + zp5kth + zmresult11) * z1dtevpkth ! implicit 
    453 !!$                  paniso_12(ji,jj) = (paniso_12(ji,jj)*z1_dtevp_A  + zmresult12) * z1dtevpkth ! implicit 
    454450               paniso_11(ji,jj) = (paniso_11(ji,jj)  + 0.5*2.e-5*zdtevp + zmresult11*zdtevp) / (1. + 2.e-5*zdtevp) ! implicit 
    455451               paniso_12(ji,jj) = (paniso_12(ji,jj)                     + zmresult12*zdtevp) / (1. + 2.e-5*zdtevp) ! implicit 
    456 !!$               ENDIF 
    457452 
    458453            IF (jter == nn_nevp) THEN 
     
    479474 
    480475            ! stress at T points (zkt/=0 if landfast) 
    481             !zs1(ji,jj) = ( zs1(ji,jj)*zalph1 + zp_delt(ji,jj) * ( zdiv*(1._wp + zkt) - zdelta(ji,jj)*(1._wp - zkt) ) ) * z1_alph1 
    482             !zs2(ji,jj) = ( zs2(ji,jj)*zalph2 + zp_delt(ji,jj) * ( zdt * z1_ecc2 * (1._wp + zkt) ) ) * z1_alph2 
    483 !!$               zs1(ji,jj) = ( zs1(ji,jj) + zstressptmp * zalph1  ) * z1_alph1 
    484 !!$               zs2(ji,jj) = ( zs2(ji,jj) + zstressmtmp * zalph1  ) * z1_alph1 
    485476            zs1(ji,jj) = ( zs1(ji,jj) * zalph1 + zstressptmp ) * z1_alph1 
    486477            zs2(ji,jj) = ( zs2(ji,jj) * zalph1 + zstressmtmp ) * z1_alph1 
    487             !zs1(ji,jj) = ( stressptmp * zs1(ji,jj) + zalph1  ) * z1_alph1 
    488             !zs2(ji,jj) = ( stressmtmp * zs2(ji,jj) + zalph1  ) * z1_alph1 
    489             !WRITE(numout,*) 'stress output', ji, jj, zs1(ji,jj) 
    490478         END_2D 
    491479         CALL lbc_lnk_multi( 'icedyn_rhg_eap', zstress12tmp, 'T', 1.0_wp , paniso_11, 'T', 1.0_wp , paniso_12, 'T', 1.0_wp) 
     
    514502             
    515503            ! stress at F points (zkt/=0 if landfast) 
    516             !zs12(ji,jj)= ( zs12(ji,jj) * zalph2 + zp_delf * ( zds(ji,jj) * z1_ecc2 * (1._wp + zkt) ) * 0.5_wp ) * z1_alph2 
    517 !!$               zs12(ji,jj) = ( zs12(ji,jj) + zstress12tmpF * zalph1  ) * z1_alph1 
    518504            zs12(ji,jj) = ( zs12(ji,jj) * zalph1 + zstress12tmpF ) * z1_alph1 
    519             !zs12(ji,jj) = ( stress12tmpF * zs12(ji,jj) + zalph1  ) * z1_alph1 
    520505 
    521506         END_2D 
     
    598583            ! 
    599584#if defined key_agrif 
    600 !!            CALL agrif_interp_ice( 'V', jter, nn_nevp ) 
     585!!          CALL agrif_interp_ice( 'V', jter, nn_nevp ) 
    601586            CALL agrif_interp_ice( 'V' ) 
    602587#endif 
     
    650635            ! 
    651636#if defined key_agrif 
    652 !!            CALL agrif_interp_ice( 'U', jter, nn_nevp ) 
     637!!          CALL agrif_interp_ice( 'U', jter, nn_nevp ) 
    653638            CALL agrif_interp_ice( 'U' ) 
    654639#endif 
     
    704689            ! 
    705690#if defined key_agrif 
    706 !!            CALL agrif_interp_ice( 'U', jter, nn_nevp ) 
     691!!          CALL agrif_interp_ice( 'U', jter, nn_nevp ) 
    707692            CALL agrif_interp_ice( 'U' ) 
    708693#endif 
     
    756741            ! 
    757742#if defined key_agrif 
    758 !!            CALL agrif_interp_ice( 'V', jter, nn_nevp ) 
     743!!          CALL agrif_interp_ice( 'V', jter, nn_nevp ) 
    759744            CALL agrif_interp_ice( 'V' ) 
    760745#endif 
     
    12771262      zsig22  = pstrength*(zstemp22r + kfriction*zstemp22s) * zinvsin 
    12781263 
    1279       !WRITE(numout,*) 'principal axis stress inside loop', sig11, sig12, sig22 
    1280  
    12811264      ! Back - rotation of the stress from principal axes into general coordinates 
    12821265 
     
    14381421            ! 
    14391422            IF( MIN( id1, id2, id3, id4, id5 ) > 0 ) THEN      ! fields exist 
    1440                CALL iom_get( numrir, jpdom_autoglo, 'stress1_i' , stress1_i ) 
    1441                CALL iom_get( numrir, jpdom_autoglo, 'stress2_i' , stress2_i ) 
    1442                CALL iom_get( numrir, jpdom_autoglo, 'stress12_i', stress12_i ) 
    1443                CALL iom_get( numrir, jpdom_autoglo, 'aniso_11'  , aniso_11  ) 
    1444                CALL iom_get( numrir, jpdom_autoglo, 'aniso_12'  , aniso_12  ) 
     1423               CALL iom_get( numrir, jpdom_auto, 'stress1_i' , stress1_i , cd_type = 'T' ) 
     1424               CALL iom_get( numrir, jpdom_auto, 'stress2_i' , stress2_i , cd_type = 'T' ) 
     1425               CALL iom_get( numrir, jpdom_auto, 'stress12_i', stress12_i, cd_type = 'F' ) 
     1426               CALL iom_get( numrir, jpdom_auto, 'aniso_11'  , aniso_11  , cd_type = 'T' ) 
     1427               CALL iom_get( numrir, jpdom_auto, 'aniso_12'  , aniso_12  , cd_type = 'T' ) 
    14451428            ELSE                                     ! start rheology from rest 
    14461429               IF(lwp) WRITE(numout,*) 
Note: See TracChangeset for help on using the changeset viewer.