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_1D.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_1D.F90

    r4045 r4072  
    4040      !! Local variables 
    4141      INTEGER  :: ji, jk, jl             ! dummy loop indices 
    42       INTEGER  :: zjpi, i_fill, jl0, ztest_1, ztest_2, ztest_3, ztest_4, ztests   
     42      INTEGER  :: ijpij, i_fill, jl0, ztest_1, ztest_2, ztest_3, ztest_4, ztests   
    4343      REAL(wp) :: zarg, zV, zconv 
    4444      REAL(wp), DIMENSION(:),   INTENT(in)    ::   zhti, zhts, zai    ! input ice/snow variables 
     
    5050      ! initialisation of variables 
    5151      !-------------------------------------------------------------------- 
    52       !WRITE(numout,*) 'size(zht_i)=',SIZE(zht_i) 
    53       !WRITE(numout,*) 'size(zht_s)=',SIZE(zht_s) 
    54       !WRITE(numout,*) 'size(za_i)=',SIZE(za_i) 
    55       !WRITE(numout,*) 'size(zhti)=',SIZE(zhti) 
    56       !WRITE(numout,*) 'size(zhts)=',SIZE(zhts) 
    57       !WRITE(numout,*) 'size(zai)=',SIZE(zai) 
    58  
    59       zjpi = SIZE(zhti,1) 
    60       zht_i(1:zjpi,1:jpl) = 0.d0 
    61       zht_s(1:zjpi,1:jpl) = 0.d0 
    62       za_i (1:zjpi,1:jpl) = 0.d0 
     52      ijpij = SIZE(zhti,1) 
     53      zht_i(1:ijpij,1:jpl) = 0.d0 
     54      zht_s(1:ijpij,1:jpl) = 0.d0 
     55      za_i (1:ijpij,1:jpl) = 0.d0 
    6356 
    6457      !------------------------------------------------------------------------------------ 
     
    7366      !         fulfills ice volume concervation between input and output (ztests=4)  
    7467      !-------------------------------------------------------------------------------------- 
    75       IF(lwp) THEN 
    76          !WRITE(numout,*) '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' 
    77          !WRITE(numout,*) 'lim_cat_1D : Distribute ice categories ' 
    78          !WRITE(numout,*) '  of thick. = ', ( hi_max(jl), jl = 0, jpl ) 
    79          !WRITE(numout,*) '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' 
    80          !WRITE(numout,*) 'zjpi=',zjpi 
    81       END IF 
    8268  
    8369      ! ---------------------------------------- 
    8470      ! distribution over the jpl ice categories 
    8571      ! ---------------------------------------- 
    86       DO ji = 1, zjpi 
     72      DO ji = 1, ijpij 
    8773        ! snow thickness in each category  
    8874         zht_s(ji,1:jpl) = zhts(ji) 
     
    181167      END DO ! i loop 
    182168 
    183       !WRITE(numout,*) 'clem zai=',MAXVAL(zai) 
    184       !WRITE(numout,*) 'clem za_i(:,jpl)=',(MAXVAL(za_i(:,jl)),jl=1,jpl) 
    185       !WRITE(numout,*) 'clem zhti=',MAXVAL(zhti) 
    186       !WRITE(numout,*) 'clem zht_i(:,jpl)=',(MAXVAL(zht_i(:,jl)),jl=1,jpl) 
    187169      IF( nn_timing == 1 )  CALL timing_stop('limcat_1D') 
    188170      
Note: See TracChangeset for help on using the changeset viewer.