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.
Changeset 2477 for trunk/NEMO/LIM_SRC_3/iceini.F90 – NEMO

Ignore:
Timestamp:
2010-12-17T14:42:51+01:00 (13 years ago)
Author:
cetlod
Message:

v3.2:remove hardcoded value of num_sal in limrst.F90, see ticket #633

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/LIM_SRC_3/iceini.F90

    r1581 r2477  
    1818   USE limmsh 
    1919   USE limistate 
     20   USE limthd         ! LIM: ice thermodynamics  
     21   USE limthd_sal     ! LIM: ice thermodynamics: salinity  
    2022   USE limrst 
    2123   USE par_ice 
     
    2628   PRIVATE 
    2729 
    28    !! * Routine accessibility 
    2930   PUBLIC ice_init                 ! called by opa.F90 
    30    PUBLIC lim_itd_ini 
    31  
    32    !! * Share Module variables 
    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       tpstot                 !: time of the run in seconds 
    4031   !!---------------------------------------------------------------------- 
    4132   !!   LIM 3.0,  UCL-ASTR-LOCEAN-IPSL (2008)  
     
    6152 
    6253      CALL ice_run                    !  read in namelist some run parameters 
    63  
    64       ! Louvain la Neuve Ice model 
    65       IF( nacc == 1 ) THEN 
    66          rdt_ice = nn_fsbc * rdtmin 
    67       ELSE 
    68          rdt_ice = nn_fsbc * rdt 
    69       ENDIF 
    70  
    71       CALL lim_msh                    ! ice mesh initialization 
    72  
    73       CALL lim_itd_ini                ! initialize the ice thickness 
    74       ! distribution 
    75       ! Initial sea-ice state 
    76       IF( .NOT.ln_rstart ) THEN 
     54      ! 
     55      CALL lim_thd_init                ! namelist read ice thermodynics parameters 
     56      ! 
     57      CALL lim_thd_sal_init            ! namelist read ice salinity parameters 
     58      ! 
     59      rdt_ice = nn_fsbc * rdttra(1)    ! sea-ice timestep 
     60      ! 
     61      CALL lim_msh                     ! ice mesh initialization 
     62      ! 
     63      CALL lim_itd_ini                 ! initialize the ice thickness distribution 
     64 
     65     !                                ! Initial sea-ice state 
     66      IF( .NOT.ln_rstart ) THEN              ! start from rest 
    7767         numit = 0 
    7868         numit = nit000 - 1 
    79          CALL lim_istate              ! start from rest: sea-ice deduced from sst 
    80          CALL lim_var_agg(1)          ! aggregate category variables in 
    81          ! bulk variables 
    82          CALL lim_var_glo2eqv         ! convert global variables in equivalent 
    83          ! variables 
    84       ELSE 
    85          CALL lim_rst_read            ! start from a restart file 
    86  
     69         CALL lim_istate                        ! start from rest: sea-ice deduced from sst 
     70         CALL lim_var_agg(1)                    ! aggregate category variables in bulk variables 
     71         CALL lim_var_glo2eqv                   ! convert global variables in equivalent variables 
     72      ELSE                                   ! start from a restart file 
     73         CALL lim_rst_read                      ! read the restart file 
    8774         numit = nit000 - 1 
    88          CALL lim_var_agg(1)          ! aggregate ice variables 
    89          CALL lim_var_glo2eqv         ! convert global var in equivalent variables 
    90       ENDIF 
    91  
     75         CALL lim_var_agg(1)                    ! aggregate ice variables 
     76         CALL lim_var_glo2eqv                   ! convert global var in equivalent variables 
     77      ENDIF 
     78      ! 
    9279      fr_i(:,:) = at_i(:,:)           ! initialisation of sea-ice fraction 
    93  
    94       nstart = numit  + nn_fsbc       
    95       nitrun = nitend - nit000 + 1  
    96       nlast  = numit  + nitrun  
    97  
    98       IF( nstock == 0  )  nstock = nlast + 1 
     80      ! 
     81      nstart = numit  + nn_fsbc 
     82      nitrun = nitend - nit000 + 1 
     83      nlast  = numit  + nitrun 
     84      ! 
     85      IF( nstock == 0  )   nstock = nlast + 1 
    9986 
    10087   END SUBROUTINE ice_init 
Note: See TracChangeset for help on using the changeset viewer.