- Timestamp:
- 2010-07-29T17:05:35+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DEV_r2006_merge_TRA_TRC/NEMO/OPA_SRC/TRA/traldf_bilapg.F90
r2024 r2034 36 36 # include "ldfeiv_substitute.h90" 37 37 !!---------------------------------------------------------------------- 38 !! OPA 9.0 , LOCEAN-IPSL (2005)38 !! NEMO/OPA 3.3 , LOCEAN-IPSL (2010) 39 39 !! $Id$ 40 40 !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt … … 43 43 CONTAINS 44 44 45 SUBROUTINE tra_ldf_bilapg( kt, cdtype, pt rab, ptraa, kjpt )45 SUBROUTINE tra_ldf_bilapg( kt, cdtype, ptb, pta, kjpt ) 46 46 !!---------------------------------------------------------------------- 47 47 !! *** ROUTINE tra_ldf_bilapg *** … … 55 55 !! computed in routine inildf. 56 56 !! -1- compute the geopotential harmonic operator applied to 57 !! pt rab and multiply it by the eddy diffusivity coefficient57 !! ptb and multiply it by the eddy diffusivity coefficient 58 58 !! (done by a call to ldfght routine, result in wk1 arrays). 59 59 !! Applied the domain lateral boundary conditions by call to lbc_lnk … … 62 62 !! arrays). 63 63 !! -3- Add this trend to the general trend 64 !! pt raa = ptraa + wk265 !! 66 !! ** Action : - Update pt raa arrays with the before geopotential64 !! pta = pta + wk2 65 !! 66 !! ** Action : - Update pta arrays with the before geopotential 67 67 !! biharmonic mixing trend. 68 68 !!---------------------------------------------------------------------- … … 71 71 CHARACTER(len=3), INTENT(in ) :: cdtype ! =TRA or TRC (tracer indicator) 72 72 INTEGER , INTENT(in ) :: kjpt ! number of tracers 73 REAL(wp) , INTENT(in ), DIMENSION(jpi,jpj,jpk,kjpt) :: pt rab ! before and now tracer fields74 REAL(wp) , INTENT(inout), DIMENSION(jpi,jpj,jpk,kjpt) :: pt raa ! tracer trend73 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 75 75 !! * Local declarations 76 76 INTEGER :: ji, jj, jk, jn ! dummy loop indices 77 REAL(wp), DIMENSION(jpi,jpj,jpk,SIZE(pt rab,4)) :: &77 REAL(wp), DIMENSION(jpi,jpj,jpk,SIZE(ptb,4)) :: & 78 78 wk1, wk2 ! work array used for rotated biharmonic 79 79 ! ! operator on tracers and/or momentum … … 88 88 ! 89 89 90 ! 1. Laplacian of pt rab * aht90 ! 1. Laplacian of ptb * aht 91 91 ! ----------------------------- 92 ! rotated harmonic operator applied to pt rab and multiply by aht ; output in wk193 94 CALL ldfght( kt, cdtype, pt rab, 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 ) 95 95 96 96 ! … … 100 100 END DO 101 101 102 ! 2. Bilaplacian of pt rab102 ! 2. Bilaplacian of ptb 103 103 ! ------------------------- 104 104 ! rotated harmonic operator applied to wk1 ; output in wk2 … … 117 117 DO ji = 2, jpim1 118 118 ! add it to the general tracer trends 119 pt raa(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) 120 120 END DO 121 121 END DO … … 166 166 !! 167 167 !!---------------------------------------------------------------------- 168 !! * Modules used168 !! 169 169 USE oce , zftv => ua ! use ua as workspace 170 !! * Arguments170 !! 171 171 INTEGER , INTENT(in ) :: kt ! ocean time-step index 172 172 CHARACTER(len=3), INTENT(in ) :: cdtype ! =TRA or TRC (tracer indicator) … … 178 178 INTEGER , INTENT(in ) :: kaht !: =1 multiply the laplacian by the eddy diffusivity coeff. 179 179 ! !: =2 no multiplication 180 !! * Local declarations180 !! 181 181 INTEGER :: ji, jj, jk,jn ! dummy loop indices 182 182 ! ! temporary scalars
Note: See TracChangeset
for help on using the changeset viewer.