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.
iceini.F90 in trunk/NEMO/LIM_SRC – NEMO

source: trunk/NEMO/LIM_SRC/iceini.F90 @ 717

Last change on this file since 717 was 717, checked in by smasson, 17 years ago

finalize the first set of modifications related to ticket:3

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 5.6 KB
Line 
1MODULE iceini
2   !!======================================================================
3   !!                       ***  MODULE iceini   ***
4   !!   Sea-ice model : LIM Sea ice model Initialization
5   !!======================================================================
6   !! History :   1.0  !  02-08  (G. Madec)  F90: Free form and modules
7   !!             2.0  !  03-08  (C. Ethe)  add ice_run
8   !!----------------------------------------------------------------------
9#if defined key_ice_lim
10   !!----------------------------------------------------------------------
11   !!   'key_ice_lim' :                                   LIM sea-ice model
12   !!----------------------------------------------------------------------
13   !!----------------------------------------------------------------------
14   !!   ice_init       : sea-ice model initialization
15   !!   ice_run        : Definition some run parameter for ice model
16   !!----------------------------------------------------------------------
17   USE dom_oce
18   USE dom_ice
19   USE ice_oce         ! ice variables
20   USE sbc_oce         ! surface boundary condition: ocean
21   USE sbc_ice         ! surface boundary condition: ice
22   USE phycst          ! Define parameters for the routines
23   USE ocfzpt
24   USE ice
25   USE limmsh
26   USE limistate
27   USE limrst   
28   USE ini1d           ! initialization of the 1D configuration
29   USE in_out_manager
30     
31   IMPLICIT NONE
32   PRIVATE
33
34   PUBLIC   ice_init                 ! called by opa.F90
35
36   LOGICAL , PUBLIC               ::   ln_limdyn = .TRUE.   !: flag for ice dynamics (T) or not (F)
37   REAL(wp), PUBLIC               ::   hsndif = 0.e0        !: computation of temp. in snow (0) or not (9999)
38   REAL(wp), PUBLIC               ::   hicdif = 0.e0        !: computation of temp. in ice (0) or not (9999)
39   REAL(wp), PUBLIC, DIMENSION(2) ::   acrit  = (/ 1.e-06 , 1.e-06 /)    !: minimum fraction for leads in
40      !                                                                  !  north and south hemisphere
41   !!----------------------------------------------------------------------
42   !!   LIM 2.0,  UCL-LOCEAN-IPSL (2005)
43   !! $Id$
44   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt
45   !!----------------------------------------------------------------------
46
47CONTAINS
48
49   SUBROUTINE ice_init
50      !!----------------------------------------------------------------------
51      !!                  ***  ROUTINE ice_init  ***
52      !!
53      !! ** purpose :   
54      !!----------------------------------------------------------------------
55      CHARACTER(len=80) :: namelist_icename
56      !!----------------------------------------------------------------------
57      !
58      ! Open the namelist file
59      namelist_icename = 'namelist_ice'
60      CALL ctlopn(numnam_ice,namelist_icename,'OLD', 'FORMATTED', 'SEQUENTIAL',   &
61                     1,numout,.FALSE.,1)     
62      CALL ice_run                    !  read in namelist some run parameters
63                 
64      ! Louvain la Neuve Ice model
65      dtsd2   = nn_fsbc * rdttra(1) * 0.5
66      rdt_ice = nn_fsbc * rdttra(1)
67
68      CALL lim_msh                    ! ice mesh initialization
69     
70      ! Initial sea-ice state
71      IF( .NOT.ln_rstart ) THEN
72         CALL lim_istate              ! start from rest: sea-ice deduced from sst
73      ELSE
74         CALL lim_rst_read            ! start from a restart file
75      ENDIF
76     
77      tn_ice(:,:) = sist(:,:)         ! initialisation of ice temperature   
78      freeze(:,:) = 1.0 - frld(:,:)   ! initialisation of sea/ice cover   
79# if defined key_coupled
80      alb_ice(:,:) = albege(:,:)      ! sea-ice albedo
81# endif
82      !
83   END SUBROUTINE ice_init
84
85
86   SUBROUTINE ice_run
87      !!-------------------------------------------------------------------
88      !!                  ***  ROUTINE ice_run ***
89      !!                 
90      !! ** Purpose :   Definition some run parameter for ice model
91      !!
92      !! ** Method  :   Read the namicerun namelist and check the parameter
93      !!       values called at the first timestep (nit000)
94      !!
95      !! ** input   :   Namelist namicerun
96      !!-------------------------------------------------------------------
97      NAMELIST/namicerun/ ln_limdyn, ln_limdmp, acrit, hsndif, hicdif
98      !!-------------------------------------------------------------------
99      !                   
100      REWIND ( numnam_ice )                       ! Read Namelist namicerun
101      READ   ( numnam_ice , namicerun )
102
103      IF( lk_cfg_1d  )   ln_limdyn = .FALSE.      ! No ice transport in 1D configuration
104
105      IF(lwp) THEN
106         WRITE(numout,*)
107         WRITE(numout,*) 'ice_run : ice share parameters for dynamics/advection/thermo of sea-ice'
108         WRITE(numout,*) ' ~~~~~~'
109         WRITE(numout,*) '   switch for ice dynamics (1) or not (0)      ln_limdyn   = ', ln_limdyn
110         WRITE(numout,*) '   Ice damping                                 ln_limdmp   = ', ln_limdmp
111         WRITE(numout,*) '   minimum fraction for leads in the NH (SH)  acrit(1/2)   = ', acrit(:)
112         WRITE(numout,*) '   computation of temp. in snow (=0) or not (=9999) hsndif = ', hsndif
113         WRITE(numout,*) '   computation of temp. in ice  (=0) or not (=9999) hicdif = ', hicdif
114      ENDIF
115      !
116   END SUBROUTINE ice_run
117
118#else
119   !!----------------------------------------------------------------------
120   !!   Default option :        Empty module           NO LIM sea-ice model
121   !!----------------------------------------------------------------------
122CONTAINS
123   SUBROUTINE ice_init        ! Empty routine
124   END SUBROUTINE ice_init
125#endif
126
127   !!======================================================================
128END MODULE iceini
Note: See TracBrowser for help on using the repository browser.