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 10288 for NEMO/branches/2018/dev_r9866_HPC_03_globcom/src/TOP/TRP/trcrad.F90 – NEMO

Ignore:
Timestamp:
2018-11-07T18:25:49+01:00 (5 years ago)
Author:
francesca
Message:

reduce global communications, see #2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2018/dev_r9866_HPC_03_globcom/src/TOP/TRP/trcrad.F90

    r9788 r10288  
    2929 
    3030   !!---------------------------------------------------------------------- 
    31    !! NEMO/TOP 3.3 , NEMO Consortium (2018) 
     31   !! NEMO/TOP 4.0 , NEMO Consortium (2018) 
    3232   !! $Id$  
    33    !! Software governed by the CeCILL licence (./LICENSE) 
     33   !! Software governed by the CeCILL license (see ./LICENSE) 
    3434   !!---------------------------------------------------------------------- 
    3535CONTAINS 
     
    153153            ztrcorn = glob_sum( MIN( 0., ptrn(:,:,:,jn) ) * cvol(:,:,:) ) 
    154154            ! 
    155             ztrmasb = glob_sum( MAX( 0., ptrb(:,:,:,jn) ) * cvol(:,:,:) ) 
    156             ztrmasn = glob_sum( MAX( 0., ptrn(:,:,:,jn) ) * cvol(:,:,:) ) 
    157             ! 
    158155            IF( ztrcorb /= 0 ) THEN 
     156               ztrmasb = glob_sum( MAX( 0., ptrb(:,:,:,jn) ) * cvol(:,:,:) ) 
    159157               zcoef = 1. + ztrcorb / ztrmasb 
    160158               DO jk = 1, jpkm1 
     
    165163            ! 
    166164            IF( ztrcorn /= 0 ) THEN 
     165               ztrmasn = glob_sum( MAX( 0., ptrn(:,:,:,jn) ) * cvol(:,:,:) ) 
    167166               zcoef = 1. + ztrcorn / ztrmasn 
    168167               DO jk = 1, jpkm1 
Note: See TracChangeset for help on using the changeset viewer.