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 5150 for branches/2012/dev_v3_4_STABLE_2012 – NEMO

Ignore:
Timestamp:
2015-03-18T11:04:44+01:00 (10 years ago)
Author:
pabouttier
Message:

Adding missing bits in DYN/dynzdf_imp_tam.F90; See Ticket #1362

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2012/dev_v3_4_STABLE_2012/NEMOGCM/NEMO/OPATAM_SRC/DYN/dynzdf_imp_tam.F90

    r3611 r5150  
    7171 
    7272      !! * Local declarations 
    73       INTEGER ::   ji, jj, jk                          ! dummy loop indices 
    74       REAL(wp) ::   z1_p2dt, z2dtf, zcoef, zzws, zrhstl ! temporary scalars 
     73      INTEGER ::   ji, jj, jk, ikbu, ikbv                          ! dummy loop indices 
     74      REAL(wp) ::  z1_p2dt, z2dtf, zcoef, zzws, zrhstl ! temporary scalars 
    7575      REAL(wp), POINTER, DIMENSION(:,:,:):: zwi, zws, zwd ! temporary workspace arrays 
     76      REAL(wp), POINTER, DIMENSION(:,:):: zavmu, zavmv      ! temporary workspace arrays 
    7677      !!---------------------------------------------------------------------- 
    7778      ! 
     
    9798 
    9899      IF( ln_bfrimp ) THEN 
    99          !!!!!!!!!!!!!!!!!!!!!!!!!!! 
     100         !!!!!!!!!!!!!!!!!!!!!!!!!! 
    100101         ! avm* are unactivated for the current TAM 
    101          !!!!!!!!!!!!!!!!!!!!!!!!!!! 
    102 !# if defined key_vectopt_loop 
    103       !DO jj = 1, 1 
    104          !DO ji = jpi+2, jpij-jpi-1   ! vector opt. (forced unrolling) 
    105 !# else 
    106       !DO jj = 2, jpjm1 
    107          !DO ji = 2, jpim1 
    108 !# endif 
    109             !ikbu = mbku(ji,jj)         ! ocean bottom level at u- and v-points 
    110             !ikbv = mbkv(ji,jj)         ! (deepest ocean u- and v-points) 
    111             !zavmu(ji,jj) = avmu(ji,jj,ikbu+1) 
    112             !zavmv(ji,jj) = avmv(ji,jj,ikbv+1) 
    113             !avmu(ji,jj,ikbu+1) = -bfrua(ji,jj) * fse3uw(ji,jj,ikbu+1) 
    114             !avmv(ji,jj,ikbv+1) = -bfrva(ji,jj) * fse3vw(ji,jj,ikbv+1) 
    115          !END DO 
    116       !END DO 
     102         !!!!!!!!!!!!!!!!!!!!!!!!!! 
     103# if defined key_vectopt_loop 
     104      DO jj = 1, 1 
     105         DO ji = jpi+2, jpij-jpi-1   ! vector opt. (forced unrolling) 
     106# else 
     107      DO jj = 2, jpjm1 
     108         DO ji = 2, jpim1 
     109# endif 
     110            ikbu = mbku(ji,jj)         ! ocean bottom level at u- and v-points 
     111            ikbv = mbkv(ji,jj)         ! (deepest ocean u- and v-points) 
     112            zavmu(ji,jj) = avmu(ji,jj,ikbu+1) 
     113            zavmv(ji,jj) = avmv(ji,jj,ikbv+1) 
     114            avmu(ji,jj,ikbu+1) = -bfrua(ji,jj) * fse3uw(ji,jj,ikbu+1) 
     115            avmv(ji,jj,ikbv+1) = -bfrva(ji,jj) * fse3vw(ji,jj,ikbv+1) 
     116         END DO 
     117      END DO 
    117118 
    118119      ENDIF 
     
    304305         ! avm* are unactivated in the current TAM 
    305306         !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 
    306 !# if defined key_vectopt_loop 
    307       !DO jj = 1, 1 
    308          !DO ji = jpi+2, jpij-jpi-1   ! vector opt. (forced unrolling) 
    309 !# else 
    310       !DO jj = 2, jpjm1 
    311          !DO ji = 2, jpim1 
    312 !# endif 
    313             !ikbu = mbku(ji,jj)         ! ocean bottom level at u- and v-points 
    314             !ikbv = mbkv(ji,jj)         ! (deepest ocean u- and v-points) 
    315             !avmu(ji,jj,ikbu+1) = zavmu(ji,jj) 
    316             !avmv(ji,jj,ikbv+1) = zavmv(ji,jj) 
    317          !END DO 
    318       !END DO 
     307# if defined key_vectopt_loop 
     308      DO jj = 1, 1 
     309         DO ji = jpi+2, jpij-jpi-1   ! vector opt. (forced unrolling) 
     310# else 
     311      DO jj = 2, jpjm1 
     312         DO ji = 2, jpim1 
     313# endif 
     314            ikbu = mbku(ji,jj)         ! ocean bottom level at u- and v-points 
     315            ikbv = mbkv(ji,jj)         ! (deepest ocean u- and v-points) 
     316            avmu(ji,jj,ikbu+1) = zavmu(ji,jj) 
     317            avmv(ji,jj,ikbv+1) = zavmv(ji,jj) 
     318         END DO 
     319      END DO 
    319320      ENDIF 
    320321      ! 
Note: See TracChangeset for help on using the changeset viewer.