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 2034 for branches/DEV_r2006_merge_TRA_TRC/NEMO/OPA_SRC/TRA/traldf_bilapg.F90 – NEMO

Ignore:
Timestamp:
2010-07-29T17:05:35+02:00 (14 years ago)
Author:
cetlod
Message:

cosmetic changes

File:
1 edited

Legend:

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

    r2024 r2034  
    3636#  include "ldfeiv_substitute.h90" 
    3737   !!---------------------------------------------------------------------- 
    38    !!   OPA 9.0 , LOCEAN-IPSL (2005)  
     38   !! NEMO/OPA 3.3 , LOCEAN-IPSL (2010)  
    3939   !! $Id$  
    4040   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt  
     
    4343CONTAINS 
    4444 
    45    SUBROUTINE tra_ldf_bilapg( kt, cdtype, ptrab, ptraa, kjpt ) 
     45   SUBROUTINE tra_ldf_bilapg( kt, cdtype, ptb, pta, kjpt ) 
    4646      !!---------------------------------------------------------------------- 
    4747      !!                 ***  ROUTINE tra_ldf_bilapg  *** 
     
    5555      !!      computed in routine inildf. 
    5656      !!         -1- compute the geopotential harmonic operator applied to 
    57       !!        ptrab and multiply it by the eddy diffusivity coefficient 
     57      !!        ptb and multiply it by the eddy diffusivity coefficient 
    5858      !!       (done by a call to ldfght routine, result in wk1 arrays). 
    5959      !!      Applied the domain lateral boundary conditions by call to lbc_lnk 
     
    6262      !!      arrays). 
    6363      !!         -3- Add this trend to the general trend  
    64       !!            ptraa = ptraa + wk2 
    65       !! 
    66       !! ** Action : - Update ptraa arrays with the before geopotential  
     64      !!            pta = pta + wk2 
     65      !! 
     66      !! ** Action : - Update pta arrays with the before geopotential  
    6767      !!               biharmonic mixing trend. 
    6868      !!---------------------------------------------------------------------- 
     
    7171      CHARACTER(len=3), INTENT(in   )                                ::   cdtype         ! =TRA or TRC (tracer indicator) 
    7272      INTEGER         , INTENT(in   )                                ::   kjpt            ! number of tracers 
    73       REAL(wp)        , INTENT(in   ), DIMENSION(jpi,jpj,jpk,kjpt)   ::   ptrab          ! before and now tracer fields 
    74       REAL(wp)        , INTENT(inout), DIMENSION(jpi,jpj,jpk,kjpt)   ::   ptraa          ! tracer trend  
     73      REAL(wp)        , INTENT(in   ), DIMENSION(jpi,jpj,jpk,kjpt)   ::   ptb          ! before and now tracer fields 
     74      REAL(wp)        , INTENT(inout), DIMENSION(jpi,jpj,jpk,kjpt)   ::   pta          ! tracer trend  
    7575      !! * Local declarations 
    7676      INTEGER ::   ji, jj, jk, jn                 ! dummy loop indices 
    77       REAL(wp), DIMENSION(jpi,jpj,jpk,SIZE(ptrab,4)) ::   & 
     77      REAL(wp), DIMENSION(jpi,jpj,jpk,SIZE(ptb,4)) ::   & 
    7878         wk1, wk2                ! work array used for rotated biharmonic 
    7979         !                       ! operator on tracers and/or momentum 
     
    8888      ! 
    8989 
    90       ! 1. Laplacian of ptrab * aht 
     90      ! 1. Laplacian of ptb * aht 
    9191      ! -----------------------------  
    92       ! rotated harmonic operator applied to ptrab and multiply by aht ; output in wk1  
    93  
    94       CALL ldfght( kt, cdtype, ptrab, wk1, kjpt, 1 ) 
     92      ! rotated harmonic operator applied to ptb and multiply by aht ; output in wk1  
     93 
     94      CALL ldfght( kt, cdtype, ptb, wk1, kjpt, 1 ) 
    9595 
    9696      ! 
     
    100100      END DO 
    101101 
    102       ! 2. Bilaplacian of ptrab 
     102      ! 2. Bilaplacian of ptb 
    103103      ! ------------------------- 
    104104      ! rotated harmonic operator applied to wk1 ; output in wk2 
     
    117117               DO ji = 2, jpim1 
    118118                  ! add it to the general tracer trends 
    119                   ptraa(ji,jj,jk,jn) = ptraa(ji,jj,jk,jn) + wk2(ji,jj,jk,jn) 
     119                  pta(ji,jj,jk,jn) = pta(ji,jj,jk,jn) + wk2(ji,jj,jk,jn) 
    120120               END DO 
    121121            END DO 
     
    166166      !! 
    167167      !!---------------------------------------------------------------------- 
    168       !! * Modules used 
     168      !!  
    169169      USE oce         , zftv => ua     ! use ua as workspace 
    170       !! * Arguments 
     170      !! 
    171171      INTEGER         , INTENT(in )                              ::  kt      ! ocean time-step index 
    172172      CHARACTER(len=3), INTENT(in )                              ::  cdtype  ! =TRA or TRC (tracer indicator)  
     
    178178      INTEGER         , INTENT(in )                              ::  kaht    !: =1 multiply the laplacian by the eddy diffusivity coeff. 
    179179      !                                                             !: =2 no multiplication  
    180       !! * Local declarations 
     180      !! 
    181181      INTEGER ::   ji, jj, jk,jn          ! dummy loop indices 
    182182      !                                   ! temporary scalars 
Note: See TracChangeset for help on using the changeset viewer.