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 1855 for branches/DEV_r1837_mass_heat_salt_fluxes/NEMO/LIM_SRC_2/limistate_2.F90 – NEMO

Ignore:
Timestamp:
2010-04-30T17:49:04+02:00 (14 years ago)
Author:
gm
Message:

ticket:#665 style change only, with the suppression of thd_ice_2 (merged in ice_2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DEV_r1837_mass_heat_salt_fluxes/NEMO/LIM_SRC_2/limistate_2.F90

    r1471 r1855  
    44   !!              Initialisation of diagnostics ice variables 
    55   !!====================================================================== 
    6    !! History :   1.0  !  01-04  (C. Ethe, G. Madec)  Original code 
    7    !!             2.0  !  03-08  (G. Madec)  add lim_istate_init 
    8    !!                  !  04-04  (S. Theetten) initialization from a file 
    9    !!                  !  06-07  (S. Masson)  IOM to read the restart 
    10    !!                  !  07-10  (G. Madec)  surface module 
     6   !! History :   1.0  !  2001-04  (C. Ethe, G. Madec)  Original code 
     7   !!             2.0  !  2003-08  (G. Madec)  add lim_istate_init 
     8   !!              -   !  2004-04  (S. Theetten) initialization from a file 
     9   !!              -   !  2006-07  (S. Masson)  IOM to read the restart 
     10   !!              -   !  2007-10  (G. Madec)  surface module 
    1111   !!-------------------------------------------------------------------- 
    1212#if defined key_lim2 
     
    1414   !!   'key_lim2' :                                  LIM 2.0 sea-ice model 
    1515   !!---------------------------------------------------------------------- 
    16    !!---------------------------------------------------------------------- 
    1716   !!   lim_istate_2      :  Initialisation of diagnostics ice variables 
    1817   !!   lim_istate_init_2 :  initialization of ice state and namelist read 
    1918   !!---------------------------------------------------------------------- 
    20    USE phycst 
    21    USE par_ice_2       ! ice parameters 
    22    USE dom_ice_2 
    23    USE eosbn2          ! equation of state 
    24    USE lbclnk 
    25    USE oce 
    26    USE ice_2 
    27    USE iom 
    28    USE in_out_manager 
     19   USE oce              ! ocean variables 
     20   USE ice_2            ! LIM-2 variables 
     21   USE par_ice_2        ! LIM-2 ice parameters 
     22   USE dom_ice_2        ! LIM-2 domain 
     23   USE phycst           ! physical constants 
     24   USE eosbn2           ! equation of state 
     25   USE lbclnk           !  
     26   USE iom              ! 
     27   USE in_out_manager   ! 
    2928 
    3029   IMPLICIT NONE 
    3130   PRIVATE 
    3231 
    33    PUBLIC lim_istate_2      ! routine called by lim_init_2.F90 
    34  
    35 !!! ** init namelist (namiceini) ** 
    36    LOGICAL  ::   ln_limini = .FALSE.  !: Ice initialization state 
     32   PUBLIC   lim_istate_2   ! routine called by lim_init_2.F90 
     33 
     34   !                                 !!! ** init namelist (namiceini) ** 
     35   LOGICAL  ::   ln_limini = .FALSE.  ! Ice initialization state 
    3736   REAL(wp) ::   ttest     = 2.0      ! threshold water temperature for initial sea ice 
    3837   REAL(wp) ::   hninn     = 0.5      ! initial snow thickness in the north 
     
    4544   REAL(wp) ::   zero      = 0.e0     ! constant value = 0 
    4645   REAL(wp) ::   zone      = 1.e0     ! constant value = 1 
    47    !!---------------------------------------------------------------------- 
    48    !!   LIM 2.0,  UCL-LOCEAN-IPSL (2006)  
     46    
     47   !!---------------------------------------------------------------------- 
     48   !! NEMO/LIM 3.3,  UCL-LOCEAN-IPSL (2010)  
    4949   !! $Id$ 
    5050   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
     
    6262      !!                or from arbitrary sea-ice conditions 
    6363      !!-------------------------------------------------------------------- 
    64       INTEGER  ::   ji, jj, jk                ! dummy loop indices 
    65       REAL(wp) ::   zidto                     ! temporary scalar 
     64      INTEGER  ::   ji, jj, jk   ! dummy loop indices 
     65      REAL(wp) ::   zidto        ! temporary scalar 
    6666      !-------------------------------------------------------------------- 
    6767  
     
    6969 
    7070      IF( .NOT. ln_limini ) THEN   
    71           
     71         ! 
    7272         tfu(:,:) = tfreez( sn(:,:,1) ) * tmask(:,:,1)       ! freezing/melting point of sea water [Celcius] 
    73  
     73         ! 
    7474         DO jj = 1, jpj 
    7575            DO ji = 1, jpi 
     
    126126 
    127127      !-- lateral boundary conditions 
    128       CALL lbc_lnk( hicif, 'T', 1. ) 
    129       CALL lbc_lnk( frld , 'T', 1. ) 
     128      CALL lbc_lnk( hicif, 'T', 1. )   ;   CALL lbc_lnk( frld , 'T', 1. ) 
    130129 
    131130      ! C A U T I O N  frld = 1 over land and lbc_lnk put zero along  
     
    140139      CALL lbc_lnk( fsbbq  , 'T', 1. ) 
    141140      CALL lbc_lnk( qstoif , 'T', 1. ) 
    142  
     141      ! 
    143142   END SUBROUTINE lim_istate_2 
    144143 
     
    151150      !! 
    152151      !! ** Method  :   Read the namiceini namelist and check the parameter  
    153       !!       values called at the first timestep (nit000) 
     152      !!              values called at the first timestep (nit000) 
    154153      !! 
    155154      !! ** input   :   Namelist namiceini 
    156155      !!------------------------------------------------------------------- 
    157       INTEGER :: inum_ice 
    158       INTEGER :: ji,jj 
    159  
     156      INTEGER ::   ji,jj      ! dummy loop indices 
     157      INTEGER ::   inum_ice   ! temporary integer 
     158      !! 
    160159      NAMELIST/namiceini/ ln_limini, ttest, hninn, hginn, alinn, & 
    161          &                hnins, hgins, alins 
     160         &                                  hnins, hgins, alins 
    162161      !!------------------------------------------------------------------- 
    163162      ! 
     
    165164      READ   ( numnam_ice , namiceini ) 
    166165      ! 
    167       IF(lwp) THEN 
     166      IF(lwp) THEN                        ! control print 
    168167         WRITE(numout,*) 
    169168         WRITE(numout,*) 'lim_istate_init_2 : ice parameters inititialisation ' 
     
    179178      ENDIF 
    180179 
    181       IF( ln_limini ) THEN                      ! Ice initialization using input file 
     180      IF( ln_limini ) THEN                ! Ice initialization using input file 
    182181         ! 
    183182         CALL iom_open( 'Ice_initialization.nc', inum_ice ) 
     
    186185            IF(lwp) WRITE(numout,*) 
    187186            IF(lwp) WRITE(numout,*) '                  ice state initialization with : Ice_initialization.nc' 
    188              
     187            ! 
    189188            CALL iom_get( inum_ice, jpdom_data, 'hicif', hicif )       
    190189            CALL iom_get( inum_ice, jpdom_data, 'hsnif', hsnif )       
     
    192191            CALL iom_get( inum_ice, jpdom_data, 'ts'   , sist  ) 
    193192            CALL iom_get( inum_ice, jpdom_unknown, 'tbif', tbif(1:nlci,1:nlcj,:),   & 
    194                  &        kstart = (/ mig(1),mjg(1),1 /), kcount = (/ nlci,nlcj,jplayersp1 /) ) 
     193                       kstart = (/ mig(1),mjg(1),1 /), kcount = (/ nlci,nlcj,jplayersp1 /) ) 
    195194            ! put some values in the extra-halo... 
    196195            DO jj = nlcj+1, jpj   ;   tbif(1:nlci,jj,:) = tbif(1:nlci,nlej,:)   ;   END DO 
    197196            DO ji = nlci+1, jpi   ;   tbif(ji    ,: ,:) = tbif(nlei  ,:   ,:)   ;   END DO 
    198  
     197            ! 
    199198            CALL iom_close( inum_ice) 
    200199            ! 
     
    208207   !!   Default option :         Empty module      NO LIM 2.0 sea-ice model 
    209208   !!---------------------------------------------------------------------- 
    210 CONTAINS 
    211    SUBROUTINE lim_istate_2        ! Empty routine 
    212    END SUBROUTINE lim_istate_2 
    213209#endif 
    214210 
Note: See TracChangeset for help on using the changeset viewer.