1 | MODULE 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 | !!---------------------------------------------------------------------- |
---|
33 | CONTAINS |
---|
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 | !!====================================================================== |
---|
49 | END MODULE agrif_ice |
---|