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 63 – NEMO

Changeset 63


Ignore:
Timestamp:
2004-04-22T13:57:46+02:00 (20 years ago)
Author:
opalod
Message:

CT : BUGFIX037 : # Compilation error corrected when using partial steps, use key_traldf_eiv instead of the logical lk_traldf_eiv

# Remove the 'USE lbclnk' sequence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/TRA/traldf_iso_zps.F90

    r22 r63  
    1414   USE oce             ! ocean dynamics and active tracers 
    1515   USE dom_oce         ! ocean space and time domain 
    16    USE ldftra_oce     ! ocean active tracers: lateral physics 
    17    USE trdtra_oce     ! ocean active tracers: trend 
     16   USE ldftra_oce      ! ocean active tracers: lateral physics 
     17   USE trdtra_oce      ! ocean active tracers: trend 
    1818   USE zdf_oce         ! ocean vertical physics 
    1919   USE in_out_manager  ! I/O manager 
    2020   USE ldfslp          ! iso-neutral slopes 
    21    USE lbclnk 
     21   USE ptr             ! poleward transport diagnostics 
     22 
    2223 
    2324   IMPLICIT NONE 
     
    9091      REAL(wp) ::   & 
    9192         zabe1, zabe2, zcof1, zcof2,   &  ! temporary scalars 
    92          zmsku, zmskv, zbtr, zta, zsa, & 
    93          zcg1, zcg2, zuwk, zvwk,       & 
    94          zuwk1, zvwk1,                 & 
     93         zmsku, zmskv, zbtr, zta, zsa, &  !    "           " 
    9594         ztagu, ztagv, zsagu, zsagv 
    96       REAL(wp), DIMENSION(jpi,jpj) ::   & 
    97          zdkt , zdk1t, zftug, zftvg,   &  ! temporary workspace 
    98          zdks , zdk1s, zfsug, zfsvg       !    "           " 
     95#if defined key_traldf_eiv  
     96      REAL(wp) ::   & 
     97         zcg1, zcg2, zuwk, zvwk,       & ! temporary scalars 
     98         zuwk1, zvwk1                    !    "           " 
     99#endif 
     100      REAL(wp), DIMENSION(jpi,jpj) ::   & ! temporary workspace 
     101         zdkt , zdk1t, zdks , zdk1s       !    "           " 
     102          
     103#if defined key_traldf_eiv  
     104      REAL(wp), DIMENSION(jpi,jpj) ::   &  ! temporary workspace 
     105         zftug, zftvg, zfsug, zfsvg        !     "        "      
     106#endif 
    99107      REAL(wp), DIMENSION(jpi,jpj,jpk) ::   &  
    100          zftv, zgtbu, zgtbv,           &  ! temporary workspace 
    101          zfsv, zgsbu, zgsbv               !    "           " 
     108         zftv, zgtbu, zgtbv,                &  ! temporary workspace 
     109         zfsv, zgsbu, zgsbv                    !    "           " 
    102110      !!---------------------------------------------------------------------- 
    103111 
     
    192200         END DO 
    193201 
    194          !                              ! ---------------------------------------! 
    195          IF( lk_traldf_eiv ) THEN       ! Eddy induced vertical advective fluxes ! 
    196             !                           ! ---------------------------------------! 
     202#if defined key_traldf_eiv 
     203                                        ! ---------------------------------------! 
     204                                        ! Eddy induced vertical advective fluxes ! 
     205                                        ! ---------------------------------------! 
    197206            DO jj = 1, jpjm1 
    198207               DO ji = 1, fs_jpim1   ! vector opt. 
     
    220229               END DO 
    221230            END DO 
    222          ENDIF 
     231#endif 
    223232 
    224233         ! II.4 Second derivative (divergence) and add to the general trend 
     
    238247            END DO 
    239248         END DO 
    240 #if defined key_trdtra || defined key_trdmld 
    241          IF( lk_traldf_eiv ) THEN 
     249#if defined key_trdtra || defined key_trdmld && key_traldf_eiv 
    242250         DO jj = 2 , jpjm1 
    243251            DO ji = fs_2, fs_jpim1   ! vector opt. 
     
    255263            END DO 
    256264         END DO 
    257          ENDIF 
    258265#endif 
    259266         !                                          ! =============== 
     
    261268      !                                             ! =============== 
    262269 
    263       IF( l_ctl .AND. lwp ) THEN         ! print mean trends (used for debugging) 
     270      IF( l_ctl ) THEN         ! print mean trends (used for debugging) 
    264271         zta = SUM( ta(2:jpim1,2:jpjm1,1:jpkm1) * tmask(2:jpim1,2:jpjm1,1:jpkm1) ) 
    265272         zsa = SUM( sa(2:jpim1,2:jpjm1,1:jpkm1) * tmask(2:jpim1,2:jpjm1,1:jpkm1) ) 
     
    273280      IF( MOD( kt, nf_ptr ) == 0 ) THEN 
    274281         ! "zonal" mean lateral diffusive heat and salt transports 
    275          pht_ldf(:,:) = prt_vj( zftv(:,:,:) ) 
    276          pst_ldf(:,:) = prt_vj( zfsv(:,:,:) ) 
     282         pht_ldf(:) = prt_vj( zftv(:,:,:) ) 
     283         pst_ldf(:) = prt_vj( zfsv(:,:,:) ) 
    277284         ! "zonal" mean lateral eddy induced velocity heat and salt transports 
    278          pht_eiv(:,:) = prt_vj( zftv(:,:,:) ) 
    279          pst_eiv(:,:) = prt_vj( zfsv(:,:,:) ) 
     285         pht_eiv(:) = prt_vj( zftv(:,:,:) ) 
     286         pst_eiv(:) = prt_vj( zfsv(:,:,:) ) 
    280287      ENDIF 
    281288#endif 
Note: See TracChangeset for help on using the changeset viewer.