- Timestamp:
- 2012-11-01T08:58:07+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2012/dev_r3385_NOCS04_HAMF/NEMOGCM/NEMO/LIM_SRC_3/limupdate.F90
r3517 r3523 272 272 ENDIF 273 273 274 at_i(:,:) = 0._wp275 DO jl = 1, jpl276 at_i(:,:) = a _i(:,:,jl) + at_i(:,:)274 at_i(:,:) = a_i(:,:,1) 275 DO jl = 2, jpl 276 at_i(:,:) = at_i(:,:) + a_i(:,:,jl) 277 277 END DO 278 278 … … 347 347 .AND.( ( v_i(ji,jj,1)/MAX(a_i(ji,jj,1),epsi10)*zindb).GT.zhimax ) & 348 348 .AND.( zat_i_old.LT.zacrith ) ) THEN ! new line 349 z_prescr_hi = hi_max(1) / 2.0350 a_i(ji,jj,1) 349 z_prescr_hi = hi_max(1) * 0.5_wp 350 a_i(ji,jj,1) = v_i(ji,jj,1) / z_prescr_hi 351 351 ENDIF 352 352 END DO … … 407 407 ENDIF 408 408 409 at_i(:,:) = 0._wp410 DO jl = 1, jpl411 at_i(:,:) = a _i(:,:,jl) + at_i(:,:)409 at_i(:,:) = a_i(:,:,1) 410 DO jl = 2, jpl 411 at_i(:,:) = at_i(:,:) + a_i(:,:,jl) 412 412 END DO 413 413 … … 447 447 ENDIF 448 448 449 at_i(:,:) = 0._wp450 DO jl = 1, jpl451 at_i(:,:) = a _i(:,:,jl) + at_i(:,:)449 at_i(:,:) = a_i(:,:,1) 450 DO jl = 2, jpl 451 at_i(:,:) = at_i(:,:) + a_i(:,:,jl) 452 452 END DO 453 453 … … 787 787 !----------------------------------------------------- 788 788 zamax = amax 789 ! 2.13.1) individual concentrations cannot exceed zamax 790 !------------------------------------------------------ 791 792 at_i(:,:) = 0.0 793 DO jl = 1, jpl 794 at_i(:,:) = a_i(:,:,jl) + at_i(:,:) 795 END DO 796 797 ! 2.13.2) Total ice concentration cannot exceed zamax 798 !---------------------------------------------------- 789 ! 2.13.1) total (and thus individual) concentrations cannot exceed zamax 790 !----------------------------------------------------------------------- 791 799 792 at_i(:,:) = a_i(:,:,1) 800 793 DO jl = 2, jpl 801 at_i(:,:) = a _i(:,:,jl) + at_i(:,:)794 at_i(:,:) = at_i(:,:) + a_i(:,:,jl) 802 795 END DO 803 796 … … 806 799 807 800 ! 0) Excessive area ? 808 z_da_ex = MAX( at_i(ji,jj) - zamax , 0. 0)801 z_da_ex = MAX( at_i(ji,jj) - zamax , 0._wp ) 809 802 810 803 ! 1) Count the number of existing categories … … 831 824 at_i(:,:) = a_i(:,:,1) 832 825 DO jl = 2, jpl 833 at_i(:,:) = a _i(:,:,jl) + at_i(:,:)826 at_i(:,:) = at_i(:,:) + a_i(:,:,jl) 834 827 END DO 835 828 … … 886 879 at_i(:,:) = a_i(:,:,1) 887 880 DO jl = 2, jpl 888 at_i(:,:) = a _i(:,:,jl) + at_i(:,:)881 at_i(:,:) = at_i(:,:) + a_i(:,:,jl) 889 882 END DO 890 883 … … 894 887 ! Ice drift 895 888 !------------ 889 !!gm BUG ? I don't understand this : it may have a wrong impact on the ice edge advection 890 !!gm and any way there is much faster way to code that... 896 891 DO jj = 2, jpjm1 897 892 DO ji = fs_2, fs_jpim1 … … 905 900 END DO 906 901 !mask velocities 902 !!gm BUG ? here the mask are the one of the beginning of the time step, no? 903 !!gm whereas at this level they should have been updated... To be checked 907 904 u_ice(:,:) = u_ice(:,:) * tmu(:,:) 908 905 v_ice(:,:) = v_ice(:,:) * tmv(:,:)
Note: See TracChangeset
for help on using the changeset viewer.