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 @ 253

Last change on this file since 253 was 253, checked in by opalod, 19 years ago

nemo_v1_update_001 : Add the 1D configuration possibility

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