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

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

define restart names in the namelist, see ticket:258

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 5.0 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
[821]23   USE ice_2
24   USE limmsh_2
25   USE limistate_2
26   USE limrst_2   
[888]27   USE in_out_manager
[508]28     
[3]29   IMPLICIT NONE
30   PRIVATE
31
[1228]32   PUBLIC   ice_init_2               ! called by sbcice_lim_2.F90
[3]33
34   !!----------------------------------------------------------------------
[247]35   !!   LIM 2.0,  UCL-LOCEAN-IPSL (2005)
[1156]36   !! $Id$
[247]37   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt
[3]38   !!----------------------------------------------------------------------
39
40CONTAINS
41
[821]42   SUBROUTINE ice_init_2
[3]43      !!----------------------------------------------------------------------
[821]44      !!                  ***  ROUTINE ice_init_2  ***
[3]45      !!
46      !! ** purpose :   
47      !!----------------------------------------------------------------------
[508]48      CHARACTER(len=80) :: namelist_icename
49      !!----------------------------------------------------------------------
50      !
[3]51      ! Open the namelist file
[391]52      namelist_icename = 'namelist_ice'
53      CALL ctlopn(numnam_ice,namelist_icename,'OLD', 'FORMATTED', 'SEQUENTIAL',   &
54                     1,numout,.FALSE.,1)     
[821]55      CALL ice_run_2                    !  read in namelist some run parameters
[3]56                 
57      ! Louvain la Neuve Ice model
[888]58      dtsd2   = nn_fsbc * rdttra(1) * 0.5
59      rdt_ice = nn_fsbc * rdttra(1)
[3]60
[821]61      CALL lim_msh_2                  ! ice mesh initialization
[3]62     
63      ! Initial sea-ice state
64      IF( .NOT.ln_rstart ) THEN
[821]65         CALL lim_istate_2            ! start from rest: sea-ice deduced from sst
[3]66      ELSE
[821]67         CALL lim_rst_read_2          ! start from a restart file
[3]68      ENDIF
69     
70      tn_ice(:,:) = sist(:,:)         ! initialisation of ice temperature   
[1037]71      fr_i  (:,:) = 1.0 - frld(:,:)   ! initialisation of sea-ice fraction   
[3]72# if defined key_coupled
73      alb_ice(:,:) = albege(:,:)      ! sea-ice albedo
74# endif
[508]75      !
[821]76   END SUBROUTINE ice_init_2
[3]77
78
[821]79   SUBROUTINE ice_run_2
[3]80      !!-------------------------------------------------------------------
[821]81      !!                  ***  ROUTINE ice_run_2 ***
[3]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      !!-------------------------------------------------------------------
[1229]90      NAMELIST/namicerun/ cn_icerst_in, cn_icerst_out, ln_limdyn, ln_limdmp, acrit, hsndif, hicdif
[3]91      !!-------------------------------------------------------------------
[508]92      !                   
93      REWIND ( numnam_ice )                       ! Read Namelist namicerun
[3]94      READ   ( numnam_ice , namicerun )
[253]95
[3]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,*) ' ~~~~~~'
[76]100         WRITE(numout,*) '   switch for ice dynamics (1) or not (0)      ln_limdyn   = ', ln_limdyn
[675]101         WRITE(numout,*) '   Ice damping                                 ln_limdmp   = ', ln_limdmp
[76]102         WRITE(numout,*) '   minimum fraction for leads in the NH (SH)  acrit(1/2)   = ', acrit(:)
[3]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
[508]106      !
[821]107   END SUBROUTINE ice_run_2
[3]108
109#else
110   !!----------------------------------------------------------------------
[821]111   !!   Default option :        Empty module       NO LIM 2.0 sea-ice model
[3]112   !!----------------------------------------------------------------------
113CONTAINS
[821]114   SUBROUTINE ice_init_2      ! Empty routine
115   END SUBROUTINE ice_init_2
[3]116#endif
117
118   !!======================================================================
[821]119END MODULE iceini_2
Note: See TracBrowser for help on using the repository browser.