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.
dom_ice.F90 in trunk/NEMOGCM/NEMO/LIM_SRC_3 – NEMO

source: trunk/NEMOGCM/NEMO/LIM_SRC_3/dom_ice.F90 @ 3148

Last change on this file since 3148 was 2777, checked in by smasson, 13 years ago

LIM3 compiling and (partly?) running in v3_3_1, see ticket#817

  • Property svn:keywords set to Id
File size: 2.7 KB
RevLine 
[825]1MODULE 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
11   USE lib_mpp         ! MPP library
[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
[2715]22   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   fcor       !: coriolis coefficient
23   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   covrai     !: sine of geographic latitude
24   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   area       !: surface of grid cell
25   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   tms, tmi   !: temperature mask, mask for stress
26   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   tmu, tmv   !: mask at u and v velocity points
27   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   tmf        !: mask at f-point
[825]28
[2715]29   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:,:) ::   wght   !: weight of the 4 neighbours to compute averages
[825]30
[1608]31   !!----------------------------------------------------------------------
[2715]32   !! NEMO/LIM3 4.0 , UCL - NEMO Consortium (2011)
[1608]33   !! $Id$
[2715]34   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
35   !!----------------------------------------------------------------------
36CONTAINS
37
[2777]38   FUNCTION dom_ice_alloc()
[2715]39      !!-------------------------------------------------------------------
40      !!            *** Routine dom_ice_alloc ***
41      !!-------------------------------------------------------------------
42      INTEGER :: dom_ice_alloc
43      !!-------------------------------------------------------------------
44      !
45      ALLOCATE( fcor(jpi,jpj)                   ,      &
46         &      covrai(jpi,jpj) , area(jpi,jpj) ,      &
47         &      tms   (jpi,jpj) , tmi (jpi,jpj) ,      &
48         &      tmu   (jpi,jpj) , tmv (jpi,jpj) ,      &
49         &      tmf   (jpi,jpj) ,                      &
50         &      wght(jpi,jpj,2,2)               , STAT = dom_ice_alloc )
51      !
52      IF( dom_ice_alloc /= 0 )   CALL ctl_warn( 'dom_ice_alloc: failed to allocate arrays.' )
53      !
54   END FUNCTION dom_ice_alloc
55
[825]56   !!======================================================================
57END MODULE dom_ice
Note: See TracBrowser for help on using the repository browser.