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.
ldftra_c2d.h90 in trunk/NEMO/OPA_SRC/LDF – NEMO

source: trunk/NEMO/OPA_SRC/LDF/ldftra_c2d.h90 @ 3

Last change on this file since 3 was 3, checked in by opalod, 20 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.1 KB
Line 
1   !!----------------------------------------------------------------------
2   !!                      ***  ldftra_c2d.h90  ***
3   !!----------------------------------------------------------------------
4
5   !!----------------------------------------------------------------------
6   !!   OPA 9.0 , LODYC-IPSL  (2003)
7   !!----------------------------------------------------------------------
8
9   SUBROUTINE ldf_tra_c2d( ld_print )
10      !!----------------------------------------------------------------------
11      !!                  ***  ROUTINE ldftra_c2d  ***
12      !!             
13      !! ** Purpose :   initializations of horizontally non uniform eddy
14      !!      diffusivity coefficients
15      !!
16      !! ** Method :
17      !!       biharmonic operator    : ahtt = defined at T-level
18      !!                                ahtu,ahtv,ahtw never used
19      !!       harmonic operator (ahtt never used)
20      !!           iso-model level   : ahtu, ahtv defined at u-, v-points
21      !!         isopycnal         : ahtu, ahtv, ahtw defined at u-, v-, w-pts
22      !!         or geopotential   
23      !!       eddy induced velocity
24      !!           always harmonic   : aeiu, aeiv, aeiw defined at u-, v-, w-pts
25      !!
26      !!----------------------------------------------------------------------
27      !! * Arguments
28      LOGICAL, INTENT (in) :: ld_print   ! If true, print arrays in numout
29
30      !! * Local variables
31# if defined key_traldf_eiv && defined key_orca_r4
32      INTEGER ::   ji, jj                  ! dummy loop indices
33# endif
34# if defined key_orca_r4
35      INTEGER :: i1, i2, j1, j2
36# endif
37      !!----------------------------------------------------------------------
38
39      IF( lk_traldf_eiv ) THEN
40         IF(lwp) WRITE(numout,*)
41         IF(lwp) WRITE(numout,*) ' inildf : 2D eddy diffusivity and eddy'
42         IF(lwp) WRITE(numout,*) ' ~~~~~~   --  induced velocity coefficients'
43         IF(lwp) WRITE(numout,*)
44      ELSE
45         IF(lwp) WRITE(numout,*)
46         IF(lwp) WRITE(numout,*) ' inildf : 2D eddy diffusivity coefficient'
47         IF(lwp) WRITE(numout,*) ' ~~~~~~   --'
48         IF(lwp) WRITE(numout,*)
49      ENDIF
50
51
52      ! biharmonic operator : (T-point)
53      ! ====================
54
55      ahtt(:,:) = aht0                ! set ahtt at T-point (here no space variation)
56
57      CALL lbc_lnk( ahtt, 'T', 1. )   ! Lateral boundary conditions on ( ahtt )
58
59      ! Control print
60      IF( lwp .AND. ld_print ) THEN
61         WRITE(numout,*)
62         WRITE(numout,*) 'inildf: 2D ahtt array'
63         CALL prihre( ahtt, jpi, jpj, 1, jpi, 1,   &
64            &                         1, jpj, 1, 1.e-3, numout )
65      ENDIF
66
67
68      ! harmonic operator : (U-, V-, W-points)
69      ! ==================
70
71      ahtu(:,:) = aht0                ! set ahtu = ahtv at u- and v-points,
72      ahtv(:,:) = aht0                ! and ahtw at w-point (idem T-point)
73      ahtw(:,:) = aht0                ! (here no space variation)
74
75      CALL lbc_lnk( ahtu, 'U', 1. )   ! Lateral boundary conditions
76      CALL lbc_lnk( ahtv, 'V', 1. )   ! (no change of sign)
77      CALL lbc_lnk( ahtw, 'W', 1. )
78
79      ! Control print
80      IF( lwp .AND. ld_print ) THEN
81         WRITE(numout,*)
82         WRITE(numout,*) 'inildf: ahtu array'
83         CALL prihre( ahtu, jpi, jpj, 1, jpi, 1,   &
84            &                         1, jpj, 1, 1.e-3, numout )
85         WRITE(numout,*)
86         WRITE(numout,*) 'inildf: ahtv array'
87         CALL prihre( ahtv, jpi, jpj, 1, jpi, 1,   &
88            &                         1, jpj, 1, 1.e-3, numout )
89         WRITE(numout,*)
90         WRITE(numout,*) 'inildf: ahtw array'
91         CALL prihre( ahtw, jpi, jpj, 1, jpi, 1,   &
92            &                         1, jpj, 1, 1.e-3, numout )
93      ENDIF
94
95# if defined key_traldf_eiv
96      ! set aeiu = aeiv at u- and v-points, and aeiw at w-point (idem T-point)
97      ! (here no space variation)
98      aeiu(:,:) = aeiv0
99      aeiv(:,:) = aeiv0
100      aeiw(:,:) = aeiv0
101     
102      IF( cp_cfg == "orca" .AND. jp_cfg == 4 ) THEN
103         !                                 ! Cancel eiv in Gibraltar strait
104         aeiu( mi0(68):mi1(71) , mj0(50):mj1(53) ) = 0.e0
105         aeiv( mi0(68):mi1(71) , mj0(50):mj1(53) ) = 0.e0
106         aeiw( mi0(68):mi1(71) , mj0(50):mj1(53) ) = 0.e0
107         !                                 ! Cancel eiv in Mediterrannean sea
108         aeiu( mi0(70):mi1(90) , mj0(49):mj1(56) ) = 0.e0
109         aeiv( mi0(70):mi1(90) , mj0(49):mj1(56) ) = 0.e0
110         aeiw( mi0(70):mi1(90) , mj0(49):mj1(56) ) = 0.e0
111      ENDIF
112
113      ! Lateral boundary conditions on ( aeiu, aeiv, aeiw )
114      CALL lbc_lnk( aeiu, 'U', 1. )
115      CALL lbc_lnk( aeiv, 'V', 1. )
116      CALL lbc_lnk( aeiw, 'W', 1. )
117
118      ! Control print
119      IF( lwp .AND. ld_print ) THEN
120         WRITE(numout,*)
121         WRITE(numout,*) 'inildf: aeiu array'
122         CALL prihre(aeiu,jpi,jpj,1,jpi,1,1,jpj,1,1.e-3,numout)
123         WRITE(numout,*)
124         WRITE(numout,*) 'inildf: aeiv array'
125         CALL prihre(aeiv,jpi,jpj,1,jpi,1,1,jpj,1,1.e-3,numout)
126         WRITE(numout,*)
127         WRITE(numout,*) 'inildf: aeiw array'
128         CALL prihre(aeiw,jpi,jpj,1,jpi,1,1,jpj,1,1.e-3,numout)
129      ENDIF
130
131# endif
132
133   END SUBROUTINE ldf_tra_c2d
Note: See TracBrowser for help on using the repository browser.