[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 |
---|
[5123] | 7 | !! 3.5 ! 2011-02 (G. Madec) dynamical allocation |
---|
[825] | 8 | !!---------------------------------------------------------------------- |
---|
[2715] | 9 | USE in_out_manager ! I/O manager |
---|
[3625] | 10 | USE lib_mpp ! MPP library |
---|
| 11 | USE lib_fortran ! Fortran utilities (allows no signed zero when 'key_nosignedzero' defined) |
---|
[825] | 12 | |
---|
| 13 | IMPLICIT NONE |
---|
| 14 | PRIVATE |
---|
| 15 | |
---|
[2715] | 16 | PUBLIC dom_ice_alloc ! Routine called by nemogcm.F90 |
---|
| 17 | |
---|
[1608] | 18 | LOGICAL, PUBLIC :: l_jeq = .TRUE. !: Equator inside the domain flag |
---|
[825] | 19 | |
---|
[1608] | 20 | INTEGER, PUBLIC :: njeq , njeqm1 !: j-index of the equator if it is inside the domain |
---|
[825] | 21 | |
---|
[5123] | 22 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: fcor !: coriolis coefficient |
---|
[2715] | 23 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:,:) :: wght !: weight of the 4 neighbours to compute averages |
---|
[825] | 24 | |
---|
[1608] | 25 | !!---------------------------------------------------------------------- |
---|
[4161] | 26 | !! NEMO/LIM3 4.0 , UCL - NEMO Consortium (2011) |
---|
[1608] | 27 | !! $Id$ |
---|
[2715] | 28 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
| 29 | !!---------------------------------------------------------------------- |
---|
| 30 | CONTAINS |
---|
| 31 | |
---|
[2777] | 32 | FUNCTION dom_ice_alloc() |
---|
[2715] | 33 | !!------------------------------------------------------------------- |
---|
| 34 | !! *** Routine dom_ice_alloc *** |
---|
| 35 | !!------------------------------------------------------------------- |
---|
| 36 | INTEGER :: dom_ice_alloc |
---|
| 37 | !!------------------------------------------------------------------- |
---|
| 38 | ! |
---|
[5123] | 39 | ALLOCATE( fcor(jpi,jpj), wght(jpi,jpj,2,2), STAT = dom_ice_alloc ) |
---|
[2715] | 40 | ! |
---|
| 41 | IF( dom_ice_alloc /= 0 ) CALL ctl_warn( 'dom_ice_alloc: failed to allocate arrays.' ) |
---|
| 42 | ! |
---|
| 43 | END FUNCTION dom_ice_alloc |
---|
| 44 | |
---|
[825] | 45 | !!====================================================================== |
---|
| 46 | END MODULE dom_ice |
---|