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 5313 for branches/2014/dev_r4650_UKMO11_restart_functionality/NEMOGCM/NEMO/LIM_SRC_3/limrst.F90 – NEMO

Ignore:
Timestamp:
2015-05-29T11:46:03+02:00 (9 years ago)
Author:
timgraham
Message:

Merged head of trunk (r5302) into branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_r4650_UKMO11_restart_functionality/NEMOGCM/NEMO/LIM_SRC_3/limrst.F90

    r5312 r5313  
    1818   USE ice            ! sea-ice variables 
    1919   USE oce     , ONLY :  snwice_mass, snwice_mass_b 
    20    USE par_ice        ! sea-ice parameters 
    2120   USE dom_oce        ! ocean domain 
    2221   USE sbc_oce        ! Surface boundary condition: ocean fields 
     
    2726   USE wrk_nemo       ! work arrays 
    2827   USE lib_fortran    ! Fortran utilities (allows no signed zero when 'key_nosignedzero' defined)   
     28   USE limctl 
    2929 
    3030   IMPLICIT NONE 
     
    3333   PUBLIC   lim_rst_opn    ! routine called by icestep.F90 
    3434   PUBLIC   lim_rst_write  ! routine called by icestep.F90 
    35    PUBLIC   lim_rst_read   ! routine called by iceini.F90 
     35   PUBLIC   lim_rst_read   ! routine called by sbc_lim_init 
    3636 
    3737   LOGICAL, PUBLIC ::   lrst_ice         !: logical to control the ice restart write  
     
    9393      ENDIF 
    9494      ! 
     95      IF( ln_icectl )   CALL lim_prt( kt, iiceprt, jiceprt, 1, ' - Beginning the time step - ' )   ! control print 
    9596   END SUBROUTINE lim_rst_opn 
    9697 
     
    172173      CALL iom_rstput( iter, nitrst, numriw, 'stress2_i'    , stress2_i  ) 
    173174      CALL iom_rstput( iter, nitrst, numriw, 'stress12_i'   , stress12_i ) 
    174       CALL iom_rstput( iter, nitrst, numriw, 'snwice_mass'  , snwice_mass )   !clem modif 
    175       CALL iom_rstput( iter, nitrst, numriw, 'snwice_mass_b', snwice_mass_b ) !clem modif 
     175      CALL iom_rstput( iter, nitrst, numriw, 'snwice_mass'  , snwice_mass ) 
     176      CALL iom_rstput( iter, nitrst, numriw, 'snwice_mass_b', snwice_mass_b ) 
    176177 
    177178      DO jl = 1, jpl  
     
    313314      !! ** purpose  :   read of sea-ice variable restart in a netcdf file 
    314315      !!---------------------------------------------------------------------- 
    315       INTEGER :: ji, jj, jk, jl, indx 
     316      INTEGER :: ji, jj, jk, jl 
    316317      REAL(wp) ::   zfice, ziter 
    317       REAL(wp) ::   zs_inf, z_slope_s, zsmax, zsmin, zalpha   ! local scalars used for the salinity profile 
    318       REAL(wp), POINTER, DIMENSION(:)   ::   zs_zero  
    319318      REAL(wp), POINTER, DIMENSION(:,:) ::   z2d 
    320319      CHARACTER(len=15) ::   znam 
     
    324323      !!---------------------------------------------------------------------- 
    325324 
    326       CALL wrk_alloc( nlay_i, zs_zero ) 
    327325      CALL wrk_alloc( jpi, jpj, z2d ) 
    328326 
     
    402400      CALL iom_get( numrir, jpdom_autoglo, 'stress2_i' , stress2_i  ) 
    403401      CALL iom_get( numrir, jpdom_autoglo, 'stress12_i', stress12_i ) 
    404       CALL iom_get( numrir, jpdom_autoglo, 'snwice_mass'  , snwice_mass )   !clem modif 
    405       CALL iom_get( numrir, jpdom_autoglo, 'snwice_mass_b', snwice_mass_b ) !clem modif 
     402      CALL iom_get( numrir, jpdom_autoglo, 'snwice_mass'  , snwice_mass ) 
     403      CALL iom_get( numrir, jpdom_autoglo, 'snwice_mass_b', snwice_mass_b ) 
    406404 
    407405      DO jl = 1, jpl  
     
    528526      ! 
    529527      ! clem: I do not understand why the following IF is needed 
    530       !       I suspect something inconsistent in the main code with option num_sal=1 
    531       IF( num_sal == 1 ) THEN 
     528      !       I suspect something inconsistent in the main code with option nn_icesal=1 
     529      IF( nn_icesal == 1 ) THEN 
    532530         DO jl = 1, jpl  
    533             sm_i(:,:,jl) = bulk_sal 
     531            sm_i(:,:,jl) = rn_icesal 
    534532            DO jk = 1, nlay_i  
    535                s_i(:,:,jk,jl) = bulk_sal 
     533               s_i(:,:,jk,jl) = rn_icesal 
    536534            END DO 
    537535         END DO 
     
    540538      !CALL iom_close( numrir ) !clem: closed in sbcice_lim.F90 
    541539      ! 
    542       CALL wrk_dealloc( nlay_i, zs_zero ) 
    543540      CALL wrk_dealloc( jpi, jpj, z2d ) 
    544541      ! 
Note: See TracChangeset for help on using the changeset viewer.