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_ice.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_ice.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

File size: 2.1 KB
Line 
1MODULE agrif_ice
2   !!======================================================================
3   !!                       ***  MODULE agrif_ice  ***
4   !! AGRIF :   define in memory AGRIF variables for sea-ice
5   !!----------------------------------------------------------------------
6   !! History :  3.3  ! 2011-07  (R. Benshila)  Original code
7   !!----------------------------------------------------------------------
8#if defined key_agrif && defined key_lim2
9   !!----------------------------------------------------------------------
10   !!   'key_agrif'                                              AGRIF zoom
11   !!----------------------------------------------------------------------
12   USE par_oce      ! ocean parameters
13   
14   IMPLICIT NONE
15   PRIVATE
16
17   PUBLIC agrif_ice_alloc ! routine called by nemo_init in nemogcm.F90
18
19   INTEGER, PUBLIC :: u_ice_id, v_ice_id, adv_ice_id, sadv_ice_id
20   REAL(wp), PUBLIC :: childfreq = 0. ! child time position in sea-ice model
21# if defined key_lim2_vp
22   REAL(wp), DIMENSION(:,:), ALLOCATABLE, PUBLIC :: u_ice_nst, v_ice_nst
23# else
24   REAL(wp), DIMENSION(:,:,:), ALLOCATABLE, PUBLIC :: u_ice_oe, v_ice_oe
25   REAL(wp), DIMENSION(:,:,:), ALLOCATABLE, PUBLIC :: u_ice_sn, v_ice_sn
26# endif
27
28   !!----------------------------------------------------------------------
29   !! NEMO/NST 3.3.1 , NEMO Consortium (2011)
30   !! $Id$
31   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
32   !!----------------------------------------------------------------------
33CONTAINS
34
35   INTEGER FUNCTION agrif_ice_alloc()
36      !!----------------------------------------------------------------------
37      !!                ***  FUNCTION agrif_ice_alloc  ***
38      !!----------------------------------------------------------------------
39# if defined key_lim2_vp
40      ALLOCATE( u_ice_nst(jpi,jpj) , v_ice_nst(jpi,jpj) , STAT = agrif_ice_alloc ) 
41# else
42      ALLOCATE( u_ice_oe(4,jpj,2) , v_ice_oe(4,jpj,2) ,    &
43         &      u_ice_sn(jpi,4,2) , v_ice_sn(jpi,4,2) ,   STAT = agrif_ice_alloc ) 
44# endif
45   END FUNCTION agrif_ice_alloc
46
47#endif
48   !!======================================================================
49END MODULE agrif_ice
Note: See TracBrowser for help on using the repository browser.