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_crs.F90 in branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/OPA_SRC/LDF – NEMO

source: branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/OPA_SRC/LDF/ldftra_crs.F90 @ 6772

Last change on this file since 6772 was 6772, checked in by cbricaud, 8 years ago

clean in coarsening branch

File size: 4.3 KB
Line 
1MODULE ldftra_crs
2   !!======================================================================
3   !!                       ***  MODULE  ldftra  ***
4   !! Ocean physics:  lateral diffusivity coefficient
5   !!=====================================================================
6   !! History :        ! 1997-07  (G. Madec)  from inimix.F split in 2 routines
7   !!   NEMO      1.0  ! 2002-09  (G. Madec)  F90: Free form and module
8   !!             2.0  ! 2005-11  (G. Madec) 
9   !!----------------------------------------------------------------------
10#if defined key_top && defined key_crs
11   !!----------------------------------------------------------------------
12   !!   ldf_tra_init : initialization, namelist read, and parameters control
13   !!   ldf_tra_c3d   : 3D eddy viscosity coefficient initialization
14   !!   ldf_tra_c2d   : 2D eddy viscosity coefficient initialization
15   !!   ldf_tra_c1d   : 1D eddy viscosity coefficient initialization
16   !!----------------------------------------------------------------------
17!   USE oce             ! ocean dynamics and tracers
18!   USE dom_oce         ! ocean space and time domain
19!   USE phycst          ! physical constants
20   USE ldftra_oce,ONLY : lk_traldf_eiv,ln_traldf_lap,ln_traldf_bilap     ! ocean tracer   lateral physics
21!   USE ldfslp          ! ???
22!   USE in_out_manager  ! I/O manager
23!   USE ioipsl
24!   USE lib_mpp         ! distribued memory computing library
25!   USE lbclnk          ! ocean lateral boundary conditions (or mpp link)
26   USE oce_trc
27   USE crslbclnk , ONLY : crs_lbc_lnk
28
29   IMPLICIT NONE
30   PRIVATE
31
32   PUBLIC   ldf_tra_crs_init   ! called by opa.F90
33
34   !! * Substitutions
35#  include "domzgr_substitute.h90"
36#  include "vectopt_loop_substitute.h90"
37   !!----------------------------------------------------------------------
38   !! NEMO/OPA 3.3 , NEMO Consortium (2010)
39   !! $Id: ldftra.F90 4624 2014-04-28 12:09:03Z acc $
40   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
41   !!----------------------------------------------------------------------
42CONTAINS
43
44   SUBROUTINE ldf_tra_crs_init
45      !!----------------------------------------------------------------------
46      !!                  ***  ROUTINE ldf_tra_init  ***
47      !!
48      !! ** Purpose :   initializations of the tracer lateral mixing coeff.
49      !!
50      !! ** Method  :   the Eddy diffusivity and eddy induced velocity ceoff.
51      !!      are defined as follows:
52      !!         default option   : constant coef. aht0, aeiv0 (namelist)
53      !!        'key_traldf_c1d': depth dependent coef. defined in
54      !!                            in ldf_tra_c1d routine
55      !!        'key_traldf_c2d': latitude and longitude dependent coef.
56      !!                            defined in ldf_tra_c2d routine
57      !!        'key_traldf_c3d': latitude, longitude, depth dependent coef.
58      !!                            defined in ldf_tra_c3d routine
59      !!
60      !!      N.B. User defined include files.  By default, 3d and 2d coef.
61      !!      are set to a constant value given in the namelist and the 1d
62      !!      coefficients are initialized to a hyperbolic tangent vertical
63      !!      profile.
64      !!----------------------------------------------------------------------
65      INTEGER ::   ioptio               ! temporary integer
66      INTEGER ::   ios                  ! temporary integer
67      LOGICAL ::   ll_print = .FALSE.   ! =T print eddy coef. in numout
68      !!----------------------------------------------------------------------
69
70!#if defined key_traldf_c3d
71!      CALL ldf_tra_c3d( ll_print )      ! aht = 3D coef. = F( longitude, latitude, depth )
72!#elif defined key_traldf_c2d
73      CALL ldf_tra_c2d_crs( ll_print )      ! aht = 2D coef. = F( longitude, latitude )
74!#elif defined key_traldf_c1d
75!      CALL ldf_tra_c1d( ll_print )      ! aht = 1D coef. = F( depth )
76!#endif
77                                        ! Constant coefficients
78      !
79   END SUBROUTINE ldf_tra_crs_init
80
81!#if defined key_traldf_c3d
82!#   include "ldftra_c3d.h90"
83!#elif defined key_traldf_c2d
84#   include "ldftra_c2d_crs.h90"
85!#elif defined key_traldf_c1d
86!#   include "ldftra_c1d.h90"
87!#endif
88
89   !!======================================================================
90#else
91   PUBLIC   ldf_tra_crs_init
92CONTAINS
93   SUBROUTINE ldf_tra_crs_init
94   END SUBROUTINE ldf_tra_crs_init
95
96#endif
97END MODULE ldftra_crs
Note: See TracBrowser for help on using the repository browser.