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 13551 for NEMO/branches/2020/dev_r13383_HPC-02_Daley_Tiling/src/OCE/ZDF/zdfosm.F90 – NEMO

Ignore:
Timestamp:
2020-10-01T12:04:12+02:00 (4 years ago)
Author:
hadcv
Message:

#2365: Replace trd_tra workarounds with ctl_warn if using tiling

File:
1 edited

Legend:

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

    r13517 r13551  
    4444                      ! uses ww from previous time step (which is now wb) to calculate hbl 
    4545   USE dom_oce        ! ocean space and time domain 
    46    ! TEMP: This change not necessary after trd_tra is tiled 
    47    USE domain, ONLY : dom_tile 
    4846   USE zdf_oce        ! ocean vertical physics 
    4947   USE sbc_oce        ! surface boundary condition: ocean 
     
    15451543      !! ** Method  :   ??? 
    15461544      !!---------------------------------------------------------------------- 
    1547       ! TEMP: This change not necessary after trd_tra is tiled 
    1548       REAL(wp), DIMENSION(:,:,:), ALLOCATABLE, SAVE ::   ztrdt, ztrds   ! 3D workspace 
     1545      REAL(wp), DIMENSION(:,:,:), ALLOCATABLE ::   ztrdt, ztrds   ! 3D workspace 
    15491546      !!---------------------------------------------------------------------- 
    15501547      INTEGER                                  , INTENT(in)    :: kt        ! time step index 
     
    15631560 
    15641561      IF( l_trdtra )   THEN                    !* Save ta and sa trends 
    1565          IF( ntile == 0 .OR. ntile == 1 )  THEN                       ! Do only on the first tile 
    1566             ! TEMP: This can be ST_2D(nn_hls) after trd_tra is tiled 
    1567             ALLOCATE( ztrdt(jpi,jpj,jpk), ztrds(jpi,jpj,jpk) ) 
    1568          ENDIF 
    1569  
    1570          DO_3D( 0, 0, 0, 0, 1, jpk ) 
    1571             ztrdt(ji,jj,jk) = pts(ji,jj,jk,jp_tem,Krhs) 
    1572             ztrds(ji,jj,jk) = pts(ji,jj,jk,jp_sal,Krhs) 
    1573          END_3D 
     1562         ALLOCATE( ztrdt(jpi,jpj,jpk) )   ;    ztrdt(:,:,:) = pts(:,:,:,jp_tem,Krhs) 
     1563         ALLOCATE( ztrds(jpi,jpj,jpk) )   ;    ztrds(:,:,:) = pts(:,:,:,jp_sal,Krhs) 
    15741564      ENDIF 
    15751565 
     
    15841574      END_3D 
    15851575 
    1586       ! TEMP: These changes not necessary after trd_tra is tiled 
     1576 
    15871577      ! save the non-local tracer flux trends for diagnostic 
    15881578      IF( l_trdtra )   THEN 
    1589          DO_3D( 0, 0, 0, 0, 1, jpk ) 
    1590             ztrdt(ji,jj,jk) = pts(ji,jj,jk,jp_tem,Krhs) - ztrdt(ji,jj,jk) 
    1591             ztrds(ji,jj,jk) = pts(ji,jj,jk,jp_sal,Krhs) - ztrds(ji,jj,jk) 
    1592          END_3D 
    1593  
    1594          IF( ntile == 0 .OR. ntile == nijtile )  THEN                ! Do only for the full domain 
    1595             IF( ln_tile ) CALL dom_tile( ntsi, ntsj, ntei, ntej, ktile = 0 )         ! Use full domain 
    1596  
     1579         ztrdt(:,:,:) = pts(:,:,:,jp_tem,Krhs) - ztrdt(:,:,:) 
     1580         ztrds(:,:,:) = pts(:,:,:,jp_sal,Krhs) - ztrds(:,:,:) 
    15971581!!bug gm jpttdzdf ==> jpttosm 
    1598             ! TODO: TO BE TILED- trd_tra 
    1599             CALL trd_tra( kt, Kmm, Krhs, 'TRA', jp_tem, jptra_zdf, ztrdt ) 
    1600             CALL trd_tra( kt, Kmm, Krhs, 'TRA', jp_sal, jptra_zdf, ztrds ) 
    1601             DEALLOCATE( ztrdt )      ;     DEALLOCATE( ztrds ) 
    1602  
    1603             IF( ln_tile ) CALL dom_tile( ntsi, ntsj, ntei, ntej, ktile = nijtile )   ! Revert to tile domain 
    1604          ENDIF 
     1582         CALL trd_tra( kt, Kmm, Krhs, 'TRA', jp_tem, jptra_zdf, ztrdt ) 
     1583         CALL trd_tra( kt, Kmm, Krhs, 'TRA', jp_sal, jptra_zdf, ztrds ) 
     1584         DEALLOCATE( ztrdt )      ;     DEALLOCATE( ztrds ) 
    16051585      ENDIF 
    16061586 
Note: See TracChangeset for help on using the changeset viewer.