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 14607 for NEMO/branches/2021/dev_r14273_HPC-02_Daley_Tiling/src/OCE/TRA/traqsr.F90 – NEMO

Ignore:
Timestamp:
2021-03-11T13:37:58+01:00 (3 years ago)
Author:
hadcv
Message:

#2600: Changes for XIOS development

File:
1 edited

Legend:

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

    r14537 r14607  
    293293      END_2D 
    294294      ! 
    295       ! TEMP: [tiling] This change not necessary and working array can use A2D(nn_hls) if using XIOS (subdomain support) 
    296       IF( .NOT. l_istiled .OR. ntile == nijtile )  THEN                ! Do only for the full domain 
    297          IF( iom_use('qsr3d') ) THEN      ! output the shortwave Radiation distribution 
    298             ALLOCATE( zetot(jpi,jpj,jpk) ) 
    299             zetot(:,:,nksr+1:jpk) = 0._wp     ! below ~400m set to zero 
    300             DO jk = nksr, 1, -1 
    301                zetot(:,:,jk) = zetot(:,:,jk+1) + qsr_hc(:,:,jk) * rho0_rcp 
    302             END DO 
    303             CALL iom_put( 'qsr3d', zetot )   ! 3D distribution of shortwave Radiation 
    304             DEALLOCATE( zetot ) 
    305          ENDIF 
     295      IF( iom_use('qsr3d') ) THEN      ! output the shortwave Radiation distribution 
     296         ALLOCATE( zetot(A2D(nn_hls),jpk) ) 
     297         zetot(:,:,nksr+1:jpk) = 0._wp     ! below ~400m set to zero 
     298         DO_3DS(0, 0, 0, 0, nksr, 1, -1) 
     299            zetot(ji,jj,jk) = zetot(ji,jj,jk+1) + qsr_hc(ji,jj,jk) * rho0_rcp 
     300         END_3D 
     301         CALL iom_put( 'qsr3d', zetot )   ! 3D distribution of shortwave Radiation 
     302         DEALLOCATE( zetot ) 
    306303      ENDIF 
    307304      ! 
Note: See TracChangeset for help on using the changeset viewer.