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.
agrif_oce.F90 in trunk/NEMOGCM/NEMO/NST_SRC – NEMO

source: trunk/NEMOGCM/NEMO/NST_SRC/agrif_oce.F90 @ 3432

Last change on this file since 3432 was 3294, checked in by rblod, 12 years ago

Merge of 3.4beta into the trunk

  • Property svn:keywords set to Id
File size: 2.8 KB
RevLine 
[782]1MODULE agrif_oce
[1605]2   !!======================================================================
[782]3   !!                       ***  MODULE agrif_oce  ***
[1605]4   !! AGRIF :   define in memory AGRIF variables
[782]5   !!----------------------------------------------------------------------
[1605]6   !! History :  2.0  ! 2007-12  (R. Benshila)  Original code
[782]7   !!----------------------------------------------------------------------
[1605]8#if defined key_agrif
[782]9   !!----------------------------------------------------------------------
[1605]10   !!   'key_agrif'                                              AGRIF zoom
11   !!----------------------------------------------------------------------
[782]12   USE par_oce      ! ocean parameters
13   USE dom_oce      ! domain parameters
14   
15   IMPLICIT NONE
[2715]16   PRIVATE
[782]17
[2715]18   PUBLIC agrif_oce_alloc ! routine called by nemo_init in nemogcm.F90
19
[1605]20   !                                              !!* Namelist namagrif: AGRIF parameters
21   LOGICAL , PUBLIC ::   ln_spc_dyn    = .FALSE.   !:
22   INTEGER , PUBLIC ::   nn_cln_update = 3         !: update frequency
[2715]23   REAL(wp), PUBLIC ::   rn_sponge_tra = 2800.     !: sponge coeff. for tracers
24   REAL(wp), PUBLIC ::   rn_sponge_dyn = 2800.     !: sponge coeff. for dynamics
[782]25
[1605]26   !                                              !!! OLD namelist names
27   INTEGER , PUBLIC ::   nbclineupdate             !: update frequency
28   REAL(wp), PUBLIC ::   visc_tra                  !: sponge coeff. for tracers
29   REAL(wp), PUBLIC ::   visc_dyn                  !: sponge coeff. for dynamics
[782]30
[1605]31   LOGICAL , PUBLIC :: spongedoneT = .FALSE.   !: tracer   sponge layer indicator
32   LOGICAL , PUBLIC :: spongedoneU = .FALSE.   !: dynamics sponge layer indicator
33
[2715]34   REAL(wp), PUBLIC, ALLOCATABLE, SAVE,  DIMENSION(:,:) ::   spe1ur , spe2vr , spbtr2   !: ???
35   REAL(wp), PUBLIC, ALLOCATABLE, SAVE,  DIMENSION(:,:) ::   spe1ur2, spe2vr2, spbtr3   !: ???
36   
[3294]37   INTEGER :: tsn_id,tsb_id,tsa_id
[2715]38   INTEGER :: un_id, vn_id, ua_id, va_id
39   INTEGER :: e1u_id, e2v_id, sshn_id, gcb_id
40   INTEGER :: trn_id, trb_id, tra_id
41
[1605]42   !!----------------------------------------------------------------------
[2715]43   !! NEMO/NST 3.3.1 , NEMO Consortium (2011)
[1605]44   !! $Id$
[2715]45   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
46   !!----------------------------------------------------------------------
47CONTAINS
48
49   INTEGER FUNCTION agrif_oce_alloc()
50      !!----------------------------------------------------------------------
51      !!                ***  FUNCTION agrif_oce_alloc  ***
52      !!----------------------------------------------------------------------
53      ALLOCATE( spe1ur (jpi,jpj) , spe2vr (jpi,jpj) , spbtr2(jpi,jpj) ,      &
54         &      spe1ur2(jpi,jpj) , spe2vr2(jpi,jpj) , spbtr3(jpi,jpj) , STAT = agrif_oce_alloc ) 
55   END FUNCTION agrif_oce_alloc
56
57#endif
[1605]58   !!======================================================================
[782]59END MODULE agrif_oce
Note: See TracBrowser for help on using the repository browser.