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/2016/dev_r6409_SIMPLIF_2_usrdef/NEMOGCM/NEMO/LIM_SRC_3 – NEMO

source: branches/2016/dev_r6409_SIMPLIF_2_usrdef/NEMOGCM/NEMO/LIM_SRC_3/dom_ice.F90 @ 7024

Last change on this file since 7024 was 6596, checked in by gm, 8 years ago

#1692 - branch SIMPLIF_2_usrdef: remove from namcfg and namdom many obsolete variables ; remove izoom/jzoom option

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