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 13563 for NEMO – NEMO

Changeset 13563 for NEMO


Ignore:
Timestamp:
2020-10-05T14:56:19+02:00 (3 years ago)
Author:
hadcv
Message:

#2365: Fix is_tile bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r13383_HPC-02_Daley_Tiling/src/OCE/DOM/domutl.F90

    r13553 r13563  
    121121      INTEGER :: is_tile_2d 
    122122      !! 
    123       IF( ln_tile .AND. SIZE(pt, 1) < jpi ) THEN 
     123      IF( ln_tile .AND. (SIZE(pt, 1) < jpi .OR. SIZE(pt, 2) < jpj) ) THEN 
    124124         is_tile_2d = 1 
    125125      ELSE 
     
    134134      INTEGER :: is_tile_3d 
    135135      !! 
    136       IF( ln_tile .AND. SIZE(pt, 1) < jpi ) THEN 
     136      IF( ln_tile .AND. (SIZE(pt, 1) < jpi .OR. SIZE(pt, 2) < jpj) ) THEN 
    137137         is_tile_3d = 1 
    138138      ELSE 
     
    147147      INTEGER :: is_tile_4d 
    148148      !! 
    149       IF( ln_tile .AND. SIZE(pt, 1) < jpi ) THEN 
     149      IF( ln_tile .AND. (SIZE(pt, 1) < jpi .OR. SIZE(pt, 2) < jpj) ) THEN 
    150150         is_tile_4d = 1 
    151151      ELSE 
Note: See TracChangeset for help on using the changeset viewer.