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 14219 for NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/src/OCE/TRA/traadv_mus.F90 – NEMO

Ignore:
Timestamp:
2020-12-18T18:52:57+01:00 (4 years ago)
Author:
mcastril
Message:

Add Mixed Precision support by Oriol Tintó

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/src/OCE/TRA/traadv_mus.F90

    r14072 r14219  
    4848#  include "do_loop_substitute.h90" 
    4949#  include "domzgr_substitute.h90" 
     50#  include "single_precision_substitute.h90" 
    5051   !!---------------------------------------------------------------------- 
    5152   !! NEMO/OCE 4.0 , NEMO Consortium (2018) 
     
    8384      ! TEMP: [tiling] This can be A2D(nn_hls) if using XIOS (subdomain support) 
    8485      REAL(wp), DIMENSION(jpi,jpj,jpk         ), INTENT(in   ) ::   pU, pV, pW      ! 3 ocean volume flux components 
    85       REAL(wp), DIMENSION(jpi,jpj,jpk,kjpt,jpt), INTENT(inout) ::   pt              ! tracers and RHS of tracer equation 
     86      REAL(dp), DIMENSION(jpi,jpj,jpk,kjpt,jpt), INTENT(inout) ::   pt              ! tracers and RHS of tracer equation 
    8687      ! 
    8788      INTEGER  ::   ji, jj, jk, jn   ! dummy loop indices 
     
    185186         !                                ! trend diagnostics 
    186187         IF( l_trd )  THEN 
    187             CALL trd_tra( kt, Kmm, Krhs, cdtype, jn, jptra_xad, zwx, pU, pt(:,:,:,jn,Kbb) ) 
    188             CALL trd_tra( kt, Kmm, Krhs, cdtype, jn, jptra_yad, zwy, pV, pt(:,:,:,jn,Kbb) ) 
     188            CALL trd_tra( kt, Kmm, Krhs, cdtype, jn, jptra_xad, zwx, pU, CASTWP(pt(:,:,:,jn,Kbb)) ) 
     189            CALL trd_tra( kt, Kmm, Krhs, cdtype, jn, jptra_yad, zwy, pV, CASTWP(pt(:,:,:,jn,Kbb)) ) 
    189190         END IF 
    190191         !                                 ! "Poleward" heat and salt transports 
     
    237238         END_3D 
    238239         !                                ! send trends for diagnostic 
    239          IF( l_trd )  CALL trd_tra( kt, Kmm, Krhs, cdtype, jn, jptra_zad, zwx, pW, pt(:,:,:,jn,Kbb) ) 
     240         IF( l_trd )  CALL trd_tra( kt, Kmm, Krhs, cdtype, jn, jptra_zad, zwx, pW, CASTWP(pt(:,:,:,jn,Kbb)) ) 
    240241         ! 
    241242      END DO                     ! end of tracer loop 
     
    245246   !!====================================================================== 
    246247END MODULE traadv_mus 
     248 
Note: See TracChangeset for help on using the changeset viewer.