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 2399 for branches/nemo_v3_3_beta/NEMOGCM/NEMO/OPA_SRC/TRA/traldf_bilapg.F90 – NEMO

Ignore:
Timestamp:
2010-11-17T10:09:35+01:00 (13 years ago)
Author:
gm
Message:

v3.3beta: diaptr (poleward heat & salt transports) #759 : rewriting including dynamical allocation + DOCTOR names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/nemo_v3_3_beta/NEMOGCM/NEMO/OPA_SRC/TRA/traldf_bilapg.F90

    r2287 r2399  
    44   !! Ocean  tracers:  horizontal component of the lateral tracer mixing trend 
    55   !!============================================================================== 
    6    !! History : 8.0   !  1997-07  (G. Madec)  Original code 
    7    !!           NEMO  ! 2002-08  (G. Madec)  F90: Free form and module 
    8    !!           3.3   !  2010-06  (C. Ethe, G. Madec) Merge TRA-TRC 
     6   !! History : 8.0   ! 1997-07  (G. Madec)  Original code 
     7   !!   NEMO    1.0   ! 2002-08  (G. Madec)  F90: Free form and module 
     8   !!           3.3   ! 2010-06  (C. Ethe, G. Madec) Merge TRA-TRC 
    99   !!============================================================================== 
    1010#if defined key_ldfslp   ||   defined key_esopa 
     
    3737   !! NEMO/OPA 3.3 , NEMO Consortium (2010) 
    3838   !! $Id$ 
    39    !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
    40    !!---------------------------------------------------------------------- 
    41     
     39   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
     40   !!---------------------------------------------------------------------- 
    4241CONTAINS 
    4342 
     
    6665      !!               biharmonic mixing trend. 
    6766      !!---------------------------------------------------------------------- 
    68       INTEGER         , INTENT(in   )                                ::   kt             ! ocean time-step index 
    69       CHARACTER(len=3), INTENT(in   )                                ::   cdtype         ! =TRA or TRC (tracer indicator) 
    70       INTEGER         , INTENT(in   )                                ::   kjpt            ! number of tracers 
    71       REAL(wp), DIMENSION(jpi,jpj,jpk,kjpt), INTENT(in   ) ::   ptb          ! before and now tracer fields 
    72       REAL(wp), DIMENSION(jpi,jpj,jpk,kjpt), INTENT(inout) ::   pta          ! tracer trend  
     67      INTEGER         , INTENT(in   )                      ::   kt       ! ocean time-step index 
     68      CHARACTER(len=3), INTENT(in   )                      ::   cdtype   ! =TRA or TRC (tracer indicator) 
     69      INTEGER         , INTENT(in   )                      ::   kjpt     ! number of tracers 
     70      REAL(wp), DIMENSION(jpi,jpj,jpk,kjpt), INTENT(in   ) ::   ptb      ! before and now tracer fields 
     71      REAL(wp), DIMENSION(jpi,jpj,jpk,kjpt), INTENT(inout) ::   pta      ! tracer trend  
    7372      !! 
    7473      INTEGER ::   ji, jj, jk, jn                 ! dummy loop indices 
     
    8180         IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~~' 
    8281      ENDIF 
    83       ! 
    84       ! 
    8582 
    8683      ! 1. Laplacian of ptb * aht 
     
    10097      ! 3. Update the tracer trends                    (j-slab :   2, jpj-1) 
    10198      ! --------------------------- 
    102       ! 
    10399      DO jn = 1, kjpt 
    104          !                                                ! =============== 
    105          DO jj = 2, jpjm1                                 !  Vertical slab 
    106             !                                             ! =============== 
     100         DO jj = 2, jpjm1 
    107101            DO jk = 1, jpkm1 
    108102               DO ji = 2, jpim1 
     
    111105               END DO 
    112106            END DO 
    113             !                                             ! =============== 
    114          END DO                                           !   End of slab 
    115          !                                                ! =============== 
     107         END DO 
    116108      END DO 
    117  
     109      ! 
    118110   END SUBROUTINE tra_ldf_bilapg 
    119111 
     
    238230         !                                                ! =============== 
    239231         ! "Poleward" diffusive heat or salt transport 
    240          IF( cdtype == 'TRA' .AND. ln_diaptr .AND. ( kaht == 2 ) .AND. ( MOD( kt, nf_ptr ) == 0 ) ) THEN 
    241             IF( jn == jp_tem)   pht_ldf(:) = ptr_vj( zftv(:,:,:) ) 
    242             IF( jn == jp_sal)   pst_ldf(:) = ptr_vj( zftv(:,:,:) ) 
     232         IF( cdtype == 'TRA' .AND. ln_diaptr .AND. ( kaht == 2 ) .AND. ( MOD( kt, nn_fptr ) == 0 ) ) THEN 
     233            IF( jn == jp_tem)   htr_ldf(:) = ptr_vj( zftv(:,:,:) ) 
     234            IF( jn == jp_sal)   str_ldf(:) = ptr_vj( zftv(:,:,:) ) 
    243235         ENDIF 
    244236 
Note: See TracChangeset for help on using the changeset viewer.