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

source: branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/NST_SRC/agrif_oce.F90 @ 2677

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

Commit in NST_SRC for agrif and dynamic memory

  • Property svn:keywords set to Id
File size: 2.6 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    = .FALSE.   !:
22   INTEGER , PUBLIC ::   nn_cln_update = 3         !: update frequency
23   REAL(wp), PUBLIC ::   rn_sponge_tra = 2800.       !: sponge coeff. for tracers
24   REAL(wp), PUBLIC ::   rn_sponge_dyn = 2800.       !: sponge coeff. for dynamics
25
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
30
31   LOGICAL , PUBLIC :: spongedoneT = .FALSE.   !: tracer   sponge layer indicator
32   LOGICAL , PUBLIC :: spongedoneU = .FALSE.   !: dynamics sponge layer indicator
33   REAL(wp), PUBLIC, ALLOCATABLE, SAVE,  DIMENSION(:,:) ::   spe1ur, spe2vr ,spbtr2, spe1ur2, spe2vr2, spbtr3   !: ???
34   
35   INTEGER :: tn_id,sn_id,tb_id,sb_id,ta_id,sa_id
36   INTEGER :: un_id, vn_id, ua_id, va_id
37   INTEGER :: e1u_id, e2v_id, sshn_id, gcb_id
38   INTEGER :: trn_id, trb_id, tra_id
39
40   CONTAINS
41
42   FUNCTION agrif_oce_alloc()
43     IMPLICIT none
44     INTEGER :: agrif_oce_alloc
45     INTEGER :: ierr
46
47     ALLOCATE(spe1ur (jpi,jpj), spe2vr (jpi,jpj), spbtr2(jpi,jpj), &
48              spe1ur2(jpi,jpj), spe2vr2(jpi,jpj), spbtr3(jpi,jpj),  &
49              Stat = ierr ) 
50
51      agrif_oce_alloc = ierr 
52
53   END FUNCTION agrif_oce_alloc
54
55#endif
56   !!----------------------------------------------------------------------
57   !! NEMO/NST 3.3 , NEMO Consortium (2010)
58   !! $Id$
59   !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)
60   !!======================================================================
61END MODULE agrif_oce
Note: See TracBrowser for help on using the repository browser.