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 14537 for NEMO/branches/2021/dev_r14273_HPC-02_Daley_Tiling/src/OCE/DIA – NEMO

Ignore:
Timestamp:
2021-02-23T15:18:28+01:00 (3 years ago)
Author:
hadcv
Message:

#2600: Reorganise dom_tile code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2021/dev_r14273_HPC-02_Daley_Tiling/src/OCE/DIA/diaptr.F90

    r14229 r14537  
    9393 
    9494         ! Calculate diagnostics only when zonal integrals have finished 
    95          IF( ntile == 0 .OR. ntile == nijtile ) CALL dia_ptr_iom(kt, Kmm, pvtr) 
     95         IF( .NOT. l_istiled .OR. ntile == nijtile ) CALL dia_ptr_iom(kt, Kmm, pvtr) 
    9696      ENDIF 
    9797 
     
    317317         ! 
    318318         IF( iom_use( 'uocetr_vsum_cumul' ) ) THEN 
    319             IF( ln_tile ) CALL dom_tile( ntsi, ntsj, ntei, ntej, ktile = 0 )         ! Use full domain 
     319            IF( ln_tile ) CALL dom_tile_stop( ldhold=.TRUE., cstr='diaptr' )             ! Use full domain 
    320320            CALL iom_get_var(  'uocetr_vsum_op', z2d ) ! get uocetr_vsum_op from xml 
    321321            z2d(:,:) = ptr_ci_2d( z2d(:,:) ) 
    322322            CALL iom_put( 'uocetr_vsum_cumul', z2d ) 
    323             IF( ln_tile ) CALL dom_tile( ntsi, ntsj, ntei, ntej, ktile = nijtile )   ! Revert to tile domain 
     323            IF( ln_tile ) CALL dom_tile_start( ldhold=.TRUE., cstr='diaptr' )            ! Revert to tile domain 
    324324         ENDIF 
    325325         ! 
     
    589589 
    590590#if ! defined key_mpi_off 
    591       IF( ntile == 0 .OR. ntile == nijtile ) THEN 
     591      IF( .NOT. l_istiled .OR. ntile == nijtile ) THEN 
    592592         ish1d(1) = jpj*nbasin 
    593593         ish2d(1) = jpj ; ish2d(2) = nbasin 
     
    627627 
    628628#if ! defined key_mpi_off 
    629       IF( ntile == 0 .OR. ntile == nijtile ) THEN 
     629      IF( .NOT. l_istiled .OR. ntile == nijtile ) THEN 
    630630         ish1d(1) = jpj*jpk*nbasin 
    631631         ish3d(1) = jpj ; ish3d(2) = jpk ; ish3d(3) = nbasin 
Note: See TracChangeset for help on using the changeset viewer.