[825] | 1 | MODULE dom_ice |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE dom_ice *** |
---|
[1608] | 4 | !! LIM-3 Sea Ice : Domain variables |
---|
[825] | 5 | !!====================================================================== |
---|
[2715] | 6 | !! History : 3.0 ! 2003-08 (M. Vancoppenolle) LIM-3 original code |
---|
| 7 | !! 4.0 ! 2011-02 (G. Madec) dynamical allocation |
---|
[825] | 8 | !!---------------------------------------------------------------------- |
---|
[2715] | 9 | USE par_ice ! LIM-3 parameter |
---|
| 10 | USE in_out_manager ! I/O manager |
---|
[3625] | 11 | USE lib_mpp ! MPP library |
---|
| 12 | USE lib_fortran ! Fortran utilities (allows no signed zero when 'key_nosignedzero' defined) |
---|
[825] | 13 | |
---|
| 14 | IMPLICIT NONE |
---|
| 15 | PRIVATE |
---|
| 16 | |
---|
[2715] | 17 | PUBLIC dom_ice_alloc ! Routine called by nemogcm.F90 |
---|
| 18 | |
---|
[1608] | 19 | LOGICAL, PUBLIC :: l_jeq = .TRUE. !: Equator inside the domain flag |
---|
[825] | 20 | |
---|
[1608] | 21 | INTEGER, PUBLIC :: njeq , njeqm1 !: j-index of the equator if it is inside the domain |
---|
[825] | 22 | |
---|
[2715] | 23 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: fcor !: coriolis coefficient |
---|
| 24 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: covrai !: sine of geographic latitude |
---|
| 25 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: area !: surface of grid cell |
---|
| 26 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: tms, tmi !: temperature mask, mask for stress |
---|
| 27 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: tmu, tmv !: mask at u and v velocity points |
---|
| 28 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: tmf !: mask at f-point |
---|
[825] | 29 | |
---|
[2715] | 30 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:,:) :: wght !: weight of the 4 neighbours to compute averages |
---|
[825] | 31 | |
---|
[1608] | 32 | !!---------------------------------------------------------------------- |
---|
[4161] | 33 | !! NEMO/LIM3 4.0 , UCL - NEMO Consortium (2011) |
---|
[1608] | 34 | !! $Id$ |
---|
[2715] | 35 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
| 36 | !!---------------------------------------------------------------------- |
---|
| 37 | CONTAINS |
---|
| 38 | |
---|
[2777] | 39 | FUNCTION dom_ice_alloc() |
---|
[2715] | 40 | !!------------------------------------------------------------------- |
---|
| 41 | !! *** Routine dom_ice_alloc *** |
---|
| 42 | !!------------------------------------------------------------------- |
---|
| 43 | INTEGER :: dom_ice_alloc |
---|
| 44 | !!------------------------------------------------------------------- |
---|
| 45 | ! |
---|
| 46 | ALLOCATE( fcor(jpi,jpj) , & |
---|
| 47 | & covrai(jpi,jpj) , area(jpi,jpj) , & |
---|
| 48 | & tms (jpi,jpj) , tmi (jpi,jpj) , & |
---|
| 49 | & tmu (jpi,jpj) , tmv (jpi,jpj) , & |
---|
| 50 | & tmf (jpi,jpj) , & |
---|
| 51 | & wght(jpi,jpj,2,2) , STAT = dom_ice_alloc ) |
---|
| 52 | ! |
---|
| 53 | IF( dom_ice_alloc /= 0 ) CALL ctl_warn( 'dom_ice_alloc: failed to allocate arrays.' ) |
---|
| 54 | ! |
---|
| 55 | END FUNCTION dom_ice_alloc |
---|
| 56 | |
---|
[825] | 57 | !!====================================================================== |
---|
| 58 | END MODULE dom_ice |
---|