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/TOP/TRP/trcdmp.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/TOP/TRP/trcdmp.F90

    r14086 r14219  
    4747#  include "do_loop_substitute.h90" 
    4848#  include "domzgr_substitute.h90" 
     49#  include "single_precision_substitute.h90" 
    4950   !!---------------------------------------------------------------------- 
    5051   !! NEMO/TOP 4.0 , NEMO Consortium (2018) 
     
    8687      INTEGER,                                    INTENT(in   ) :: kt              ! ocean time-step index 
    8788      INTEGER,                                    INTENT(in   ) :: Kbb, Kmm, Krhs  ! time level indices 
    88       REAL(wp), DIMENSION(jpi,jpj,jpk,jptra,jpt), INTENT(inout) :: ptr             ! passive tracers and RHS of tracer equation 
     89      REAL(dp), DIMENSION(jpi,jpj,jpk,jptra,jpt), INTENT(inout) :: ptr             ! passive tracers and RHS of tracer equation 
    8990      ! 
    9091      INTEGER ::   ji, jj, jk, jn, jl   ! dummy loop indices 
    9192      CHARACTER (len=22) ::   charout 
    9293      REAL(wp), ALLOCATABLE, DIMENSION(:,:,:) ::   ztrtrd 
    93       REAL(wp), ALLOCATABLE, DIMENSION(:,:,:) ::   ztrcdta   ! 3D  workspace 
     94      REAL(dp), ALLOCATABLE, DIMENSION(:,:,:) ::   ztrcdta   ! 3D  workspace 
    9495      !!---------------------------------------------------------------------- 
    9596      ! 
     
    151152         WRITE(charout, FMT="('dmp ')") 
    152153         CALL prt_ctl_info( charout, cdcomp = 'top' ) 
    153          CALL prt_ctl( tab4d_1=ptr(:,:,:,:,Krhs), mask1=tmask, clinfo=ctrcnm, clinfo3='trd' ) 
     154         CALL prt_ctl( tab4d_1=CASTWP(ptr(:,:,:,:,Krhs)), mask1=tmask, clinfo=ctrcnm, clinfo3='trd' ) 
    154155      ENDIF 
    155156      ! 
     
    231232      INTEGER :: ji , jj, jk, jn, jl, jc                    ! dummy loop indicesa 
    232233      INTEGER :: isrow                                      ! local index 
    233       REAL(wp), POINTER, DIMENSION(:,:,:) ::  ztrcdta       ! 3D  workspace 
     234      REAL(dp), POINTER, DIMENSION(:,:,:) ::  ztrcdta       ! 3D  workspace 
    234235      !!---------------------------------------------------------------------- 
    235236 
Note: See TracChangeset for help on using the changeset viewer.