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 branches/2011/dev_r2802_LOCEAN10_agrif_lim/NEMOGCM/NEMO/NST_SRC – NEMO

source: branches/2011/dev_r2802_LOCEAN10_agrif_lim/NEMOGCM/NEMO/NST_SRC/agrif_oce.F90 @ 2804

Last change on this file since 2804 was 2804, checked in by rblod, 13 years ago

dev_r2802_LOCEAN10_agrif_lim: first implementation see ticket #848

  • Property svn:keywords set to Id
File size: 2.9 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
[2804]31   INTEGER, PUBLIC :: nbcline = 0
[1605]32   LOGICAL , PUBLIC :: spongedoneT = .FALSE.   !: tracer   sponge layer indicator
33   LOGICAL , PUBLIC :: spongedoneU = .FALSE.   !: dynamics sponge layer indicator
34
[2715]35   REAL(wp), PUBLIC, ALLOCATABLE, SAVE,  DIMENSION(:,:) ::   spe1ur , spe2vr , spbtr2   !: ???
36   REAL(wp), PUBLIC, ALLOCATABLE, SAVE,  DIMENSION(:,:) ::   spe1ur2, spe2vr2, spbtr3   !: ???
37   
[2804]38   INTEGER, PUBLIC :: tn_id, sn_id, tb_id, sb_id, ta_id, sa_id
39   INTEGER, PUBLIC :: un_id, vn_id, ua_id, va_id
40   INTEGER, PUBLIC :: e1u_id, e2v_id, sshn_id, gcb_id
41   INTEGER, PUBLIC :: trn_id, trb_id, tra_id
[2715]42
[1605]43   !!----------------------------------------------------------------------
[2715]44   !! NEMO/NST 3.3.1 , NEMO Consortium (2011)
[1605]45   !! $Id$
[2715]46   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
47   !!----------------------------------------------------------------------
48CONTAINS
49
50   INTEGER FUNCTION agrif_oce_alloc()
51      !!----------------------------------------------------------------------
52      !!                ***  FUNCTION agrif_oce_alloc  ***
53      !!----------------------------------------------------------------------
54      ALLOCATE( spe1ur (jpi,jpj) , spe2vr (jpi,jpj) , spbtr2(jpi,jpj) ,      &
55         &      spe1ur2(jpi,jpj) , spe2vr2(jpi,jpj) , spbtr3(jpi,jpj) , STAT = agrif_oce_alloc ) 
56   END FUNCTION agrif_oce_alloc
57
58#endif
[1605]59   !!======================================================================
[782]60END MODULE agrif_oce
Note: See TracBrowser for help on using the repository browser.