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 13518 for NEMO/branches/2020/dev_r13383_HPC-02_Daley_Tiling/src/OCE/TRA/tradmp.F90 – NEMO

Ignore:
Timestamp:
2020-09-24T20:49:07+02:00 (4 years ago)
Author:
hadcv
Message:

Tiling for modules before tra_adv

File:
1 edited

Legend:

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

    r13295 r13518  
    2424   USE oce            ! ocean: variables 
    2525   USE dom_oce        ! ocean: domain variables 
     26   ! TEMP: This change not necessary after trd_tra is tiled 
     27   USE domain, ONLY : dom_tile 
    2628   USE c1d            ! 1D vertical configuration 
    2729   USE trd_oce        ! trends: ocean variables 
     
    9597      ! 
    9698      INTEGER ::   ji, jj, jk, jn   ! dummy loop indices 
    97       REAL(wp), DIMENSION(jpi,jpj,jpk,jpts)     ::  zts_dta 
    98       REAL(wp), DIMENSION(:,:,:,:), ALLOCATABLE ::  ztrdts 
     99      REAL(wp), DIMENSION(ST_2D(nn_hls),jpk,jpts)     ::  zts_dta 
     100      ! TEMP: This change not necessary after trd_tra is tiled 
     101      REAL(wp), DIMENSION(:,:,:,:), ALLOCATABLE, SAVE ::  ztrdts 
    99102      !!---------------------------------------------------------------------- 
    100103      ! 
     
    102105      ! 
    103106      IF( l_trdtra )   THEN                    !* Save ta and sa trends 
    104          ALLOCATE( ztrdts(jpi,jpj,jpk,jpts) )  
    105          ztrdts(:,:,:,:) = pts(:,:,:,:,Krhs)  
     107         IF( ntile == 0 .OR. ntile == 1 )  THEN                       ! Do only on the first tile 
     108            ! TEMP: This can be ST_2D(nn_hls) after trd_tra is tiled 
     109            ALLOCATE( ztrdts(jpi,jpj,jpk,jpts) ) 
     110         ENDIF 
     111 
     112         DO_3D( 0, 0, 0, 0, 1, jpk ) 
     113            ztrdts(ji,jj,jk,:) = pts(ji,jj,jk,:,Krhs) 
     114         END_3D 
    106115      ENDIF 
    107116      !                           !==  input T-S data at kt  ==! 
     
    140149      END SELECT 
    141150      ! 
     151      ! TEMP: These changes not necessary after trd_tra is tiled 
    142152      IF( l_trdtra )   THEN       ! trend diagnostic 
    143          ztrdts(:,:,:,:) = pts(:,:,:,:,Krhs) - ztrdts(:,:,:,:) 
    144          CALL trd_tra( kt, Kmm, Krhs, 'TRA', jp_tem, jptra_dmp, ztrdts(:,:,:,jp_tem) ) 
    145          CALL trd_tra( kt, Kmm, Krhs, 'TRA', jp_sal, jptra_dmp, ztrdts(:,:,:,jp_sal) ) 
    146          DEALLOCATE( ztrdts )  
     153         DO_3D( 0, 0, 0, 0, 1, jpk ) 
     154            ztrdts(ji,jj,jk,:) = pts(ji,jj,jk,:,Krhs) - ztrdts(ji,jj,jk,:) 
     155         END_3D 
     156 
     157         IF( ntile == 0 .OR. ntile == nijtile )  THEN                ! Do only for the full domain 
     158            IF( ln_tile ) CALL dom_tile( ntsi, ntsj, ntei, ntej, ktile = 0 )         ! Use full domain 
     159 
     160            ! TODO: TO BE TILED- trd_tra 
     161            CALL trd_tra( kt, Kmm, Krhs, 'TRA', jp_tem, jptra_dmp, ztrdts(:,:,:,jp_tem) ) 
     162            CALL trd_tra( kt, Kmm, Krhs, 'TRA', jp_sal, jptra_dmp, ztrdts(:,:,:,jp_sal) ) 
     163            DEALLOCATE( ztrdts ) 
     164 
     165            IF( ln_tile ) CALL dom_tile( ntsi, ntsj, ntei, ntej, ktile = nijtile )   ! Revert to tile domain 
     166         ENDIF 
    147167      ENDIF 
    148168      !                           ! Control print 
Note: See TracChangeset for help on using the changeset viewer.