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/2013/dev_MERGE_2013/NEMOGCM/NEMO/NST_SRC – NEMO

source: branches/2013/dev_MERGE_2013/NEMOGCM/NEMO/NST_SRC/agrif_oce.F90 @ 4486

Last change on this file since 4486 was 4486, checked in by jchanut, 10 years ago

Finalize Time split and AGRIF (tickets #106 and #107) + ticket #1240

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