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 trunk/NEMO/LIM_SRC_2 – NEMO

source: trunk/NEMO/LIM_SRC_2/iceini_2.F90 @ 940

Last change on this file since 940 was 900, checked in by rblod, 16 years ago

Update 1D configuration according to SBC and LIM3, see ticket #117

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