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 branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/LIM_SRC_3 – NEMO

source: branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/LIM_SRC_3/dom_ice.F90 @ 2612

Last change on this file since 2612 was 2612, checked in by gm, 13 years ago

dynamic mem: #785 ; LIM-3 case: changes required for compilation (continuation)

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