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 8565 for branches/2017/dev_r8183_ICEMODEL/NEMOGCM/NEMO/LIM_SRC_3/icevar.F90 – NEMO

Ignore:
Timestamp:
2017-09-27T12:09:10+02:00 (7 years ago)
Author:
clem
Message:

trying to respect naming convention

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_r8183_ICEMODEL/NEMOGCM/NEMO/LIM_SRC_3/icevar.F90

    r8564 r8565  
    378378      CASE( 1 )       !  constant salinity in time and space  ! 
    379379         !            !---------------------------------------! 
    380          sz_i_1d(1:nidx,:) = rn_icesal 
     380         sz_i_1d(1:npti,:) = rn_icesal 
    381381         ! 
    382382         !            !---------------------------------------------! 
     
    387387         ! 
    388388         !                                      ! Slope of the linear profile  
    389          WHERE( h_i_1d(1:nidx) > epsi20 )   ;   z_slope_s(1:nidx) = 2._wp * s_i_1d(1:nidx) / h_i_1d(1:nidx) 
    390          ELSEWHERE                           ;   z_slope_s(1:nidx) = 0._wp 
     389         WHERE( h_i_1d(1:npti) > epsi20 )   ;   z_slope_s(1:npti) = 2._wp * s_i_1d(1:npti) / h_i_1d(1:npti) 
     390         ELSEWHERE                           ;   z_slope_s(1:npti) = 0._wp 
    391391         END WHERE 
    392392          
    393393         z1_dS = 1._wp / ( zsi1 - zsi0 ) 
    394          DO ji = 1, nidx 
     394         DO ji = 1, npti 
    395395            zalpha(ji) = MAX(  0._wp , MIN(  ( zsi1 - s_i_1d(ji) ) * z1_dS , 1._wp  )  ) 
    396396            !                             ! force a constant profile when SSS too low (Baltic Sea) 
     
    400400         ! Computation of the profile 
    401401         DO jk = 1, nlay_i 
    402             DO ji = 1, nidx 
     402            DO ji = 1, npti 
    403403               !                          ! linear profile with 0 surface value 
    404404               zs0 = z_slope_s(ji) * ( REAL(jk,wp) - 0.5_wp ) * h_i_1d(ji) * r1_nlay_i 
     
    414414         !            !-------------------------------------------!                                   (mean = 2.30) 
    415415         ! 
    416          s_i_1d(1:nidx) = 2.30_wp 
     416         s_i_1d(1:npti) = 2.30_wp 
    417417         ! 
    418418!!gm cf remark in ice_var_salprof routine, CASE( 3 ) 
     
    420420            zargtemp  = ( REAL(jk,wp) - 0.5_wp ) * r1_nlay_i 
    421421            zsal =  1.6_wp * ( 1._wp - COS( rpi * zargtemp**( 0.407_wp / ( 0.573_wp + zargtemp ) ) ) ) 
    422             DO ji = 1, nidx 
     422            DO ji = 1, npti 
    423423               sz_i_1d(ji,jk) = zsal 
    424424            END DO 
Note: See TracChangeset for help on using the changeset viewer.