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 4072 for branches/2013/dev_r4028_CNRS_LIM3/NEMOGCM/NEMO/LIM_SRC_3/limcat_2D.F90 – NEMO

Ignore:
Timestamp:
2013-10-17T15:10:59+02:00 (11 years ago)
Author:
clem
Message:

few rewritings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r4028_CNRS_LIM3/NEMOGCM/NEMO/LIM_SRC_3/limcat_2D.F90

    r4045 r4072  
    3939      !! Local variables 
    4040      INTEGER  :: ji, jj, jk, jl             ! dummy loop indices 
    41       INTEGER  :: zjpi, zjpj, i_fill, jl0, ztest_1, ztest_2, ztest_3, ztest_4, ztests   
     41      INTEGER  :: ijpi, ijpj, i_fill, jl0, ztest_1, ztest_2, ztest_3, ztest_4, ztests   
    4242      REAL(wp) :: zarg, zV, zconv 
    4343      REAL(wp), DIMENSION(:,:),   INTENT(in)  ::   zhti, zhts, zai    ! input ice/snow variables 
     
    4848      ! initialisation of variables 
    4949      !-------------------------------------------------------------------- 
    50       zjpi = SIZE(zhti,1) 
    51       zjpj = SIZE(zhti,2) 
    52       zht_i(1:zjpi,1:zjpj,1:jpl) = 0.d0 
    53       zht_s(1:zjpi,1:zjpj,1:jpl) = 0.d0 
    54       za_i (1:zjpi,1:zjpj,1:jpl) = 0.d0 
     50      ijpi = SIZE(zhti,1) 
     51      ijpj = SIZE(zhti,2) 
     52      zht_i(1:ijpi,1:ijpj,1:jpl) = 0.d0 
     53      zht_s(1:ijpi,1:ijpj,1:jpl) = 0.d0 
     54      za_i (1:ijpi,1:ijpj,1:jpl) = 0.d0 
    5555 
    5656      !------------------------------------------------------------------------------------ 
     
    6565      !         fulfills ice volume concervation between input and output (ztests=4)  
    6666      !-------------------------------------------------------------------------------------- 
    67       IF(lwp) THEN 
    68          WRITE(numout,*) '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' 
    69          WRITE(numout,*) 'lim_cat_2D : Distribute ice categories ' 
    70          WRITE(numout,*) '  of thick. = ', ( hi_max(jl), jl = 0, jpl ) 
    71          WRITE(numout,*) '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' 
    72       END IF 
    73       !WRITE(numout,*) ' * zht_i_ini : ', ( zht_i_ini(1,1,jl), jl = 1, jpl ) 
    74       !WRITE(numout,*) ' * za_i_ini :  ', ( za_i_ini(1,1,jl), jl = 1, jpl ) 
    7567  
    7668      ! ---------------------------------------- 
    7769      ! distribution over the jpl ice categories 
    7870      ! ---------------------------------------- 
    79       DO jj = 1, zjpj 
    80          DO ji = 1, zjpi 
     71      DO jj = 1, ijpj 
     72         DO ji = 1, ijpi 
    8173 
    8274            ! snow thickness in each category  
Note: See TracChangeset for help on using the changeset viewer.