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 branches/DEV_r1924_nocs_latphys/NEMO/OPA_SRC/LDF – NEMO

source: branches/DEV_r1924_nocs_latphys/NEMO/OPA_SRC/LDF/ldftra_oce.F90 @ 2177

Last change on this file since 2177 was 2177, checked in by sga, 14 years ago

NEMO branch DEV_r1924_nocs_latphys.

Remove code for optional calculation of eddy induced velocity coefficients by Visbeck method.
This code now in separate branch DEV_r1924_visbeck.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.1 KB
RevLine 
[3]1MODULE ldftra_oce
2   !!=====================================================================
3   !!                      ***  MODULE  ldftra_oce  ***
4   !! Ocean physics :  lateral tracer mixing coefficient defined in memory
5   !!=====================================================================
[1601]6   !! History :  9.0  !  02-11  (G. Madec)  Original code
[3]7   !!----------------------------------------------------------------------
8   USE par_oce         ! ocean parameters
9
10   IMPLICIT NONE
11   PRIVATE
12
13   !!----------------------------------------------------------------------
14   !! Lateral eddy diffusivity coefficients (tracers)
15   !!----------------------------------------------------------------------
[1601]16   !                                                !!* Namelist namtra_ldf : lateral mixing *
17   LOGICAL , PUBLIC ::   ln_traldf_lap   = .TRUE.    !: laplacian operator
18   LOGICAL , PUBLIC ::   ln_traldf_bilap = .FALSE.   !: bilaplacian operator
19   LOGICAL , PUBLIC ::   ln_traldf_level = .FALSE.   !: iso-level direction
20   LOGICAL , PUBLIC ::   ln_traldf_hor   = .FALSE.   !: horizontal (geopotential) direction
21   LOGICAL , PUBLIC ::   ln_traldf_iso   = .TRUE.    !: iso-neutral direction
[2060]22   LOGICAL , PUBLIC ::   ln_traldf_grif  = .TRUE.    !: griffies skew flux
[1601]23   REAL(wp), PUBLIC ::   rn_aht_0        = 2000._wp  !: lateral eddy diffusivity (m2/s)
24   REAL(wp), PUBLIC ::   rn_ahtb_0       =    0._wp  !: lateral background eddy diffusivity (m2/s)
25   REAL(wp), PUBLIC ::   rn_aeiv_0       = 2000._wp  !: eddy induced velocity coefficient (m2/s)
[2163]26   REAL(wp), PUBLIC ::   rn_slpmax       = 0.01_wp   !: slope limit
[3]27
[2061]28   REAL(wp), PUBLIC ::   aht0, ahtb0, aeiv0         !!: OLD namelist names
[3]29
30#if defined key_traldf_c3d
[1601]31   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) ::   ahtt, ahtu, ahtv, ahtw   !: ** 3D coefficients ** at T-, U-, V-, W-points
[3]32#elif defined key_traldf_c2d
[1601]33   REAL(wp), PUBLIC, DIMENSION(jpi,jpj)     ::   ahtt, ahtu, ahtv, ahtw   !: ** 2D coefficients ** at T-, U-, V-, W-points
[3]34#elif defined key_traldf_c1d
[1601]35   REAL(wp), PUBLIC, DIMENSION(jpk)         ::   ahtt, ahtu, ahtv, ahtw   !: ** 1D coefficients ** at T-, U-, V-, W-points
[3]36#else
[1601]37   REAL(wp), PUBLIC                         ::   ahtt, ahtu, ahtv, ahtw   !: ** 0D coefficients ** at T-, U-, V-, W-points
[3]38#endif
39
40
41#if defined key_traldf_eiv
42   !!----------------------------------------------------------------------
43   !!   'key_traldf_eiv'                              eddy induced velocity
44   !!----------------------------------------------------------------------
[2163]45   LOGICAL, PUBLIC, PARAMETER               ::   lk_traldf_eiv   = .TRUE.   !: eddy induced velocity flag
46   REAL(wp), PUBLIC                         ::   slpmax                     !: slope limit
[3]47     
48# if defined key_traldf_c3d
[1601]49   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) ::   aeiu, aeiv, aeiw  !: ** 3D coefficients ** at U-, V-, W-points  [m2/s]
[3]50# elif defined key_traldf_c2d
[1601]51   REAL(wp), PUBLIC, DIMENSION(jpi,jpj)     ::   aeiu, aeiv, aeiw  !: ** 2D coefficients ** at U-, V-, W-points  [m2/s]
[3]52# elif defined key_traldf_c1d
[1601]53   REAL(wp), PUBLIC, DIMENSION(jpk)         ::   aeiu, aeiv, aeiw  !: ** 1D coefficients ** at U-, V-, W-points  [m2/s]
[3]54# else
[1601]55   REAL(wp), PUBLIC                         ::   aeiu, aeiv, aeiw  !: ** 0D coefficients ** at U-, V-, W-points  [m2/s]
[3]56# endif
57# if defined key_diaeiv
[1601]58   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) ::   u_eiv, v_eiv, w_eiv   !: eddy induced velocity [m/s]
[3]59# endif
60
61#else
62   !!----------------------------------------------------------------------
63   !!   Default option :                           NO eddy induced velocity
64   !!----------------------------------------------------------------------
[32]65   LOGICAL , PUBLIC, PARAMETER ::   lk_traldf_eiv   = .FALSE.   !: eddy induced velocity flag
[1601]66   REAL(wp), PUBLIC            ::   aeiu, aeiv, aeiw            !: eddy induced coef. (not used)
[3]67#endif
68
69   !!----------------------------------------------------------------------
[1601]70   !! NEMO/OPA 3.2 , LOCEAN-IPSL (2009)
71   !! $Id$
72   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt)
73   !!=====================================================================
[3]74END MODULE ldftra_oce
Note: See TracBrowser for help on using the repository browser.