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 13295 for NEMO/trunk/src/OCE/ICB – NEMO

Ignore:
Timestamp:
2020-07-10T20:24:21+02:00 (4 years ago)
Author:
acc
Message:

Replace do-loop macros in the trunk with alternative forms with greater flexibility for extra halo applications. This alters a lot of routines but does not change any behaviour or results. do_loop_substitute.h90 is greatly simplified by this change. SETTE results are identical to those with the previous revision

Location:
NEMO/trunk/src/OCE/ICB
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/ICB/icbclv.F90

    r12377 r13295  
    7171         !  where (berg_grid%calving==0.) berg_grid%stored_ice(:,:,jn)=0. 
    7272         !end do 
    73          DO_2D_00_00 
     73         DO_2D( 0, 0, 0, 0 ) 
    7474            IF( berg_grid%calving(ji,jj) /= 0._wp )                                          &    ! Need units of J 
    7575               berg_grid%stored_heat(ji,jj) = SUM( berg_grid%stored_ice(ji,jj,:) ) *         &    ! initial stored ice in kg 
     
    8181      ! assume that all calving flux must be distributed even if distribution array does not sum 
    8282      ! to one - this may not be what is intended, but it's what you've got 
    83       DO_2D_11_11 
     83      DO_2D( 1, 1, 1, 1 ) 
    8484         imx = berg_grid%maxclass(ji,jj) 
    8585         zdist = SUM( rn_distribution(1:nclasses) ) / SUM( rn_distribution(1:imx) ) 
  • NEMO/trunk/src/OCE/ICB/icbini.F90

    r13286 r13295  
    123123      nicbfldproc(:) = -1 
    124124 
    125       DO_2D_11_11 
     125      DO_2D( 1, 1, 1, 1 ) 
    126126         src_calving_hflx(ji,jj) = narea 
    127127         src_calving     (ji,jj) = nicbpack * mjg(jj) + mig(ji) 
Note: See TracChangeset for help on using the changeset viewer.