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

source: trunk/NEMO/OPA_SRC/LDF/ldftra_oce.F90 @ 1152

Last change on this file since 1152 was 1152, checked in by rblod, 16 years ago

Convert cvs header to svn Id, step II

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.7 KB
Line 
1MODULE ldftra_oce
2   !!=====================================================================
3   !!                      ***  MODULE  ldftra_oce  ***
4   !! Ocean physics :  lateral tracer mixing coefficient defined in memory
5   !!=====================================================================
6   !!
7   !! ** Purpose : - Define in memory lateral tracer mixing coefficients
8   !!
9   !! History :
10   !!   9.0  !  02-11  (G. Madec)  Original code (from common.h)
11   !!----------------------------------------------------------------------
12   !!  OPA 9.0 , LOCEAN-IPSL (2005)
13   !! $Id$
14   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt
15   !!----------------------------------------------------------------------
16   !! * Modules used
17   USE par_oce         ! ocean parameters
18
19   IMPLICIT NONE
20   PRIVATE
21
22   !!----------------------------------------------------------------------
23   !! Lateral eddy diffusivity coefficients (tracers)
24   !!----------------------------------------------------------------------
25
26   LOGICAL , PUBLIC ::              & !!: ** lateral mixing namelist (nam_traldf) **
27      ln_traldf_lap   = .TRUE.  ,   &  !: laplacian operator
28      ln_traldf_bilap = .FALSE. ,   &  !: bilaplacian operator
29      ln_traldf_level = .FALSE. ,   &  !: iso-level direction
30      ln_traldf_hor   = .FALSE. ,   &  !: horizontal (geopotential) direction
31      ln_traldf_iso   = .TRUE.         !: iso-neutral direction
32
33   REAL(wp), PUBLIC ::              & !!: ** lateral mixing namelist (namldf) **
34      aht0  = 2000._wp     ,        &  !: lateral eddy diffusivity (m2/s)
35      ahtb0 =    0._wp     ,        &  !: lateral background eddy diffusivity (m2/s)
36      aeiv0 = 2000._wp                 !: eddy induced velocity coefficient (m2/s)
37
38#if defined key_traldf_c3d
39   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) ::   &  !: ** 3D coefficients **
40#elif defined key_traldf_c2d
41   REAL(wp), PUBLIC, DIMENSION(jpi,jpj)     ::   &  !: ** 2D coefficients **
42#elif defined key_traldf_c1d
43   REAL(wp), PUBLIC, DIMENSION(jpk)         ::   &  !: ** 1D coefficients **
44#else
45   REAL(wp), PUBLIC                         ::   &  !: ** 0D coefficients **
46#endif
47      ahtt, ahtu, ahtv, ahtw                !: T-, U-, V-, W-points coefficients
48
49
50#if defined key_traldf_eiv
51   !!----------------------------------------------------------------------
52   !!   'key_traldf_eiv'                              eddy induced velocity
53   !!----------------------------------------------------------------------
54   LOGICAL, PUBLIC, PARAMETER ::   lk_traldf_eiv   = .TRUE.   !: eddy induced velocity flag
55     
56# if defined key_traldf_c3d
57   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) ::   &  !: ** 3D coefficients **
58# elif defined key_traldf_c2d
59   REAL(wp), PUBLIC, DIMENSION(jpi,jpj)     ::   &  !: ** 2D coefficients **
60# elif defined key_traldf_c1d
61   REAL(wp), PUBLIC, DIMENSION(jpk)         ::   &  !: ** 1D coefficients **
62# else
63   REAL(wp), PUBLIC                         ::   &  !: ** 0D coefficients **
64# endif
65      aeiu, aeiv, aeiw                              !: U-, V-, W-points  induced velocity coef. (m2/s)
66
67# if defined key_diaeiv
68   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) ::    &  !:
69      u_eiv, v_eiv, w_eiv     !: The three component of the eddy induced velocity (m/s)
70# endif
71
72#else
73   !!----------------------------------------------------------------------
74   !!   Default option :                           NO eddy induced velocity
75   !!----------------------------------------------------------------------
76   LOGICAL , PUBLIC, PARAMETER ::   lk_traldf_eiv   = .FALSE.   !: eddy induced velocity flag
77   REAL(wp), PUBLIC ::   aeiu, aeiv, aeiw
78#endif
79
80   !!----------------------------------------------------------------------
81END MODULE ldftra_oce
Note: See TracBrowser for help on using the repository browser.