- Timestamp:
- 2017-09-27T12:09:10+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_r8183_ICEMODEL/NEMOGCM/NEMO/LIM_SRC_3/icevar.F90
r8564 r8565 378 378 CASE( 1 ) ! constant salinity in time and space ! 379 379 ! !---------------------------------------! 380 sz_i_1d(1:n idx,:) = rn_icesal380 sz_i_1d(1:npti,:) = rn_icesal 381 381 ! 382 382 ! !---------------------------------------------! … … 387 387 ! 388 388 ! ! Slope of the linear profile 389 WHERE( h_i_1d(1:n idx) > epsi20 ) ; z_slope_s(1:nidx) = 2._wp * s_i_1d(1:nidx) / h_i_1d(1:nidx)390 ELSEWHERE ; z_slope_s(1:n idx) = 0._wp389 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 391 391 END WHERE 392 392 393 393 z1_dS = 1._wp / ( zsi1 - zsi0 ) 394 DO ji = 1, n idx394 DO ji = 1, npti 395 395 zalpha(ji) = MAX( 0._wp , MIN( ( zsi1 - s_i_1d(ji) ) * z1_dS , 1._wp ) ) 396 396 ! ! force a constant profile when SSS too low (Baltic Sea) … … 400 400 ! Computation of the profile 401 401 DO jk = 1, nlay_i 402 DO ji = 1, n idx402 DO ji = 1, npti 403 403 ! ! linear profile with 0 surface value 404 404 zs0 = z_slope_s(ji) * ( REAL(jk,wp) - 0.5_wp ) * h_i_1d(ji) * r1_nlay_i … … 414 414 ! !-------------------------------------------! (mean = 2.30) 415 415 ! 416 s_i_1d(1:n idx) = 2.30_wp416 s_i_1d(1:npti) = 2.30_wp 417 417 ! 418 418 !!gm cf remark in ice_var_salprof routine, CASE( 3 ) … … 420 420 zargtemp = ( REAL(jk,wp) - 0.5_wp ) * r1_nlay_i 421 421 zsal = 1.6_wp * ( 1._wp - COS( rpi * zargtemp**( 0.407_wp / ( 0.573_wp + zargtemp ) ) ) ) 422 DO ji = 1, n idx422 DO ji = 1, npti 423 423 sz_i_1d(ji,jk) = zsal 424 424 END DO
Note: See TracChangeset
for help on using the changeset viewer.