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 3523 for branches/2012/dev_r3385_NOCS04_HAMF/NEMOGCM/NEMO/LIM_SRC_3/limupdate.F90 – NEMO

Ignore:
Timestamp:
2012-11-01T08:58:07+01:00 (11 years ago)
Author:
gm
Message:

Branch: dev_r3385_NOCS04_HAMF; #665. LIM3 update: bug correction in limtrp and mass flux added in limthd_lac

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2012/dev_r3385_NOCS04_HAMF/NEMOGCM/NEMO/LIM_SRC_3/limupdate.F90

    r3517 r3523  
    272272      ENDIF 
    273273 
    274       at_i(:,:) = 0._wp 
    275       DO jl = 1, jpl 
    276          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) 
    277277      END DO 
    278278 
     
    347347               .AND.( ( v_i(ji,jj,1)/MAX(a_i(ji,jj,1),epsi10)*zindb).GT.zhimax ) & 
    348348               .AND.( zat_i_old.LT.zacrith ) )  THEN ! new line 
    349                z_prescr_hi      = hi_max(1) / 2.0 
    350                a_i(ji,jj,1)     = v_i(ji,jj,1) / z_prescr_hi 
     349               z_prescr_hi  = hi_max(1) * 0.5_wp 
     350               a_i(ji,jj,1) = v_i(ji,jj,1) / z_prescr_hi 
    351351            ENDIF 
    352352         END DO 
     
    407407      ENDIF 
    408408 
    409       at_i(:,:) = 0._wp 
    410       DO jl = 1, jpl 
    411          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) 
    412412      END DO 
    413413 
     
    447447      ENDIF 
    448448 
    449       at_i(:,:) = 0._wp 
    450       DO jl = 1, jpl 
    451          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) 
    452452      END DO 
    453453 
     
    787787      !----------------------------------------------------- 
    788788      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 
    799792      at_i(:,:) = a_i(:,:,1) 
    800793      DO jl = 2, jpl 
    801          at_i(:,:) = a_i(:,:,jl) + at_i(:,:) 
     794         at_i(:,:) = at_i(:,:) + a_i(:,:,jl) 
    802795      END DO 
    803796 
     
    806799 
    807800            ! 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 )         
    809802 
    810803            ! 1) Count the number of existing categories 
     
    831824      at_i(:,:) = a_i(:,:,1) 
    832825      DO jl = 2, jpl 
    833          at_i(:,:) = a_i(:,:,jl) + at_i(:,:) 
     826         at_i(:,:) = at_i(:,:) + a_i(:,:,jl) 
    834827      END DO 
    835828 
     
    886879      at_i(:,:) = a_i(:,:,1) 
    887880      DO jl = 2, jpl 
    888          at_i(:,:) = a_i(:,:,jl) + at_i(:,:) 
     881         at_i(:,:) = at_i(:,:) + a_i(:,:,jl) 
    889882      END DO 
    890883 
     
    894887      ! Ice drift 
    895888      !------------ 
     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... 
    896891      DO jj = 2, jpjm1 
    897892         DO ji = fs_2, fs_jpim1 
     
    905900      END DO 
    906901      !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  
    907904      u_ice(:,:) = u_ice(:,:) * tmu(:,:) 
    908905      v_ice(:,:) = v_ice(:,:) * tmv(:,:) 
Note: See TracChangeset for help on using the changeset viewer.