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 5055 for branches/2015/dev_r5044_CNRS_LIM3CLEAN/NEMOGCM/NEMO/OPA_SRC/SBC/sbcice_lim.F90 – NEMO

Ignore:
Timestamp:
2015-02-04T11:10:53+01:00 (9 years ago)
Author:
clem
Message:

LIM3: removing par_ice and put jpl, nlay_i and nlay_s as namelist parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5044_CNRS_LIM3CLEAN/NEMOGCM/NEMO/OPA_SRC/SBC/sbcice_lim.F90

    r5053 r5055  
    2222   USE oce             ! ocean dynamics and tracers 
    2323   USE dom_oce         ! ocean space and time domain 
    24    USE par_ice         ! sea-ice parameters 
    2524   USE ice             ! LIM-3: ice variables 
    2625   USE thd_ice         ! LIM-3: thermodynamical variables 
     
    304303      IF(lwp) WRITE(numout,*) '~~~~~~~~~~~   via Louvain la Neuve Ice Model (LIM-3) time stepping' 
    305304      ! 
     305                                       ! Open the reference and configuration namelist files and namelist output file  
     306      CALL ctl_opn( numnam_ice_ref, 'namelist_ice_ref',    'OLD',     'FORMATTED', 'SEQUENTIAL', -1, numout, lwp )  
     307      CALL ctl_opn( numnam_ice_cfg, 'namelist_ice_cfg',    'OLD',     'FORMATTED', 'SEQUENTIAL', -1, numout, lwp ) 
     308      IF(lwm) CALL ctl_opn( numoni, 'output.namelist.ice', 'UNKNOWN', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, 1 ) 
     309 
     310      CALL ice_run                     ! set some ice run parameters including jpl, nlay_i and nlay_s 
    306311      !                                ! Allocate the ice arrays 
    307312      ierr =        ice_alloc        ()      ! ice variables 
     
    316321      !                                ! adequation jpk versus ice/snow layers/categories 
    317322      IF( jpl > jpk .OR. (nlay_i+1) > jpk .OR. nlay_s > jpk )   & 
    318          &      CALL ctl_stop( 'STOP',                     & 
     323         &      CALL ctl_stop( 'STOP',                          & 
    319324         &     'sbc_lim_init: the 3rd dimension of workspace arrays is too small.',   & 
    320325         &     'use more ocean levels or less ice/snow layers/categories.' ) 
    321  
    322                                        ! Open the reference and configuration namelist files and namelist output file  
    323       CALL ctl_opn( numnam_ice_ref, 'namelist_ice_ref',    'OLD',     'FORMATTED', 'SEQUENTIAL', -1, numout, lwp )  
    324       CALL ctl_opn( numnam_ice_cfg, 'namelist_ice_cfg',    'OLD',     'FORMATTED', 'SEQUENTIAL', -1, numout, lwp ) 
    325       IF(lwm) CALL ctl_opn( numoni, 'output.namelist.ice', 'UNKNOWN', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, 1 ) 
    326       ! 
    327       CALL ice_run                     ! set some ice run parameters 
     326      ! 
    328327      ! 
    329328      CALL lim_thd_init                ! set ice thermodynics parameters 
     
    335334      CALL lim_itd_init                ! ice thickness distribution initialization 
    336335      ! 
    337       CALL lim_itd_me_init             ! ice thickness distribution initialization 
     336      CALL lim_itd_me_init             ! ice thickness distribution initialization for mecanical deformation 
    338337      !                                ! Initial sea-ice state 
    339338      IF( .NOT. ln_rstart ) THEN              ! start from rest: sea-ice deduced from sst 
     
    373372      !! ** input   :   Namelist namicerun 
    374373      !!------------------------------------------------------------------- 
    375 !clem      NAMELIST/namicerun/ jpl, nlay_i, nlay_s, cn_icerst_in, cn_icerst_out,   & 
    376 !clem         &                ln_limdyn, amax, ln_nicep, ln_limdiahsb, ln_limdiaout 
    377       NAMELIST/namicerun/ cn_icerst_in, cn_icerst_out,   & 
     374      INTEGER  ::   ios                 ! Local integer output status for namelist read 
     375      NAMELIST/namicerun/ jpl, nlay_i, nlay_s, cn_icerst_in, cn_icerst_out,   & 
    378376         &                ln_limdyn, amax, ln_nicep, ln_limdiahsb, ln_limdiaout 
    379       INTEGER  ::   ios                 ! Local integer output status for namelist read 
    380377      !!------------------------------------------------------------------- 
    381378      !                     
     
    394391         WRITE(numout,*) 'ice_run : ice share parameters for dynamics/advection/thermo of sea-ice' 
    395392         WRITE(numout,*) ' ~~~~~~' 
    396 !clem         WRITE(numout,*) '   number of ice  categories                               = ', jpl 
    397 !clem         WRITE(numout,*) '   number of ice  layers                                   = ', nlay_i 
    398 !clem         WRITE(numout,*) '   number of snow layers                                   = ', nlay_s 
     393         WRITE(numout,*) '   number of ice  categories                               = ', jpl 
     394         WRITE(numout,*) '   number of ice  layers                                   = ', nlay_i 
     395         WRITE(numout,*) '   number of snow layers                                   = ', nlay_s 
    399396         WRITE(numout,*) '   switch for ice dynamics (1) or not (0)      ln_limdyn   = ', ln_limdyn 
    400397         WRITE(numout,*) '   maximum ice concentration                               = ', amax  
Note: See TracChangeset for help on using the changeset viewer.