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_2.F90 in branches/dev_003_CPL/NEMO/LIM_SRC_2 – NEMO

source: branches/dev_003_CPL/NEMO/LIM_SRC_2/iceini_2.F90 @ 991

Last change on this file since 991 was 991, checked in by smasson, 16 years ago

dev_003_CPL: preliminary draft (not working), see ticket #155

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.3 KB
Line 
1MODULE iceini_2
2   !!======================================================================
3   !!                       ***  MODULE iceini   ***
4   !!   Sea-ice model : LIM 2.0 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_lim2
10   !!----------------------------------------------------------------------
11   !!   'key_lim2' :                                  LIM 2.0 sea-ice model
12   !!----------------------------------------------------------------------
13   !!----------------------------------------------------------------------
14   !!   ice_init_2       : sea-ice model initialization
15   !!   ice_run_2        : Definition some run parameter for ice model
16   !!----------------------------------------------------------------------
17   USE dom_oce
18   USE dom_ice_2
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_2
25   USE limmsh_2
26   USE limistate_2
27   USE limrst_2   
28   USE in_out_manager
29     
30   IMPLICIT NONE
31   PRIVATE
32
33   PUBLIC   ice_init_2               ! called by opa.F90
34
35   LOGICAL , PUBLIC               ::   ln_limdyn = .TRUE.   !: flag for ice dynamics (T) or not (F)
36   REAL(wp), PUBLIC               ::   hsndif = 0.e0        !: computation of temp. in snow (0) or not (9999)
37   REAL(wp), PUBLIC               ::   hicdif = 0.e0        !: computation of temp. in ice (0) or not (9999)
38   REAL(wp), PUBLIC, DIMENSION(2) ::   acrit  = (/ 1.e-06 , 1.e-06 /)    !: minimum fraction for leads in
39      !                                                                  !  north and south hemisphere
40   !!----------------------------------------------------------------------
41   !!   LIM 2.0,  UCL-LOCEAN-IPSL (2005)
42   !! $ Id: $
43   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt
44   !!----------------------------------------------------------------------
45
46CONTAINS
47
48   SUBROUTINE ice_init_2
49      !!----------------------------------------------------------------------
50      !!                  ***  ROUTINE ice_init_2  ***
51      !!
52      !! ** purpose :   
53      !!----------------------------------------------------------------------
54      CHARACTER(len=80) :: namelist_icename
55      !!----------------------------------------------------------------------
56      !
57      ! Open the namelist file
58      namelist_icename = 'namelist_ice'
59      CALL ctlopn(numnam_ice,namelist_icename,'OLD', 'FORMATTED', 'SEQUENTIAL',   &
60                     1,numout,.FALSE.,1)     
61      CALL ice_run_2                    !  read in namelist some run parameters
62                 
63      ! Louvain la Neuve Ice model
64      dtsd2   = nn_fsbc * rdttra(1) * 0.5
65      rdt_ice = nn_fsbc * rdttra(1)
66
67      CALL lim_msh_2                  ! ice mesh initialization
68     
69      ! Initial sea-ice state
70      IF( .NOT.ln_rstart ) THEN
71         CALL lim_istate_2            ! start from rest: sea-ice deduced from sst
72      ELSE
73         CALL lim_rst_read_2          ! start from a restart file
74      ENDIF
75      !
76   END SUBROUTINE ice_init_2
77
78
79   SUBROUTINE ice_run_2
80      !!-------------------------------------------------------------------
81      !!                  ***  ROUTINE ice_run_2 ***
82      !!                 
83      !! ** Purpose :   Definition some run parameter for ice model
84      !!
85      !! ** Method  :   Read the namicerun namelist and check the parameter
86      !!       values called at the first timestep (nit000)
87      !!
88      !! ** input   :   Namelist namicerun
89      !!-------------------------------------------------------------------
90      NAMELIST/namicerun/ ln_limdyn, ln_limdmp, acrit, hsndif, hicdif
91      !!-------------------------------------------------------------------
92      !                   
93      REWIND ( numnam_ice )                       ! Read Namelist namicerun
94      READ   ( numnam_ice , namicerun )
95
96      IF(lwp) THEN
97         WRITE(numout,*)
98         WRITE(numout,*) 'ice_run : ice share parameters for dynamics/advection/thermo of sea-ice'
99         WRITE(numout,*) ' ~~~~~~'
100         WRITE(numout,*) '   switch for ice dynamics (1) or not (0)      ln_limdyn   = ', ln_limdyn
101         WRITE(numout,*) '   Ice damping                                 ln_limdmp   = ', ln_limdmp
102         WRITE(numout,*) '   minimum fraction for leads in the NH (SH)  acrit(1/2)   = ', acrit(:)
103         WRITE(numout,*) '   computation of temp. in snow (=0) or not (=9999) hsndif = ', hsndif
104         WRITE(numout,*) '   computation of temp. in ice  (=0) or not (=9999) hicdif = ', hicdif
105      ENDIF
106      !
107   END SUBROUTINE ice_run_2
108
109#else
110   !!----------------------------------------------------------------------
111   !!   Default option :        Empty module       NO LIM 2.0 sea-ice model
112   !!----------------------------------------------------------------------
113CONTAINS
114   SUBROUTINE ice_init_2      ! Empty routine
115   END SUBROUTINE ice_init_2
116#endif
117
118   !!======================================================================
119END MODULE iceini_2
Note: See TracBrowser for help on using the repository browser.