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 15540 for NEMO/branches/2021/dev_r14116_HPC-10_mcastril_Mixed_Precision_implementation/src/OCE/TRD/trdglo.F90 – NEMO

Ignore:
Timestamp:
2021-11-26T12:27:56+01:00 (3 years ago)
Author:
sparonuz
Message:

Mixed precision version, tested up to 30 years on ORCA2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2021/dev_r14116_HPC-10_mcastril_Mixed_Precision_implementation/src/OCE/TRD/trdglo.F90

    r14219 r15540  
    3838 
    3939   !                     !!! Variables used for diagnostics 
    40    REAL(wp) ::   tvolt    ! volume of the whole ocean computed at t-points 
    41    REAL(wp) ::   tvolu    ! volume of the whole ocean computed at u-points 
    42    REAL(wp) ::   tvolv    ! volume of the whole ocean computed at v-points 
    43    REAL(wp) ::   rpktrd   ! potential to kinetic energy conversion 
    44    REAL(wp) ::   peke     ! conversion potential energy - kinetic energy trend 
     40   REAL(dp) ::   tvolt    ! volume of the whole ocean computed at t-points 
     41   REAL(dp) ::   tvolu    ! volume of the whole ocean computed at u-points 
     42   REAL(dp) ::   tvolv    ! volume of the whole ocean computed at v-points 
     43   REAL(dp) ::   rpktrd   ! potential to kinetic energy conversion 
     44   REAL(dp) ::   peke     ! conversion potential energy - kinetic energy trend 
    4545 
    4646   !                     !!! domain averaged trends 
    47    REAL(wp), DIMENSION(jptot_tra) ::   tmo, smo   ! temperature and salinity trends  
    48    REAL(wp), DIMENSION(jptot_tra) ::   t2 , s2    ! T^2 and S^2 trends  
    49    REAL(wp), DIMENSION(jptot_dyn) ::   umo, vmo   ! momentum trends  
    50    REAL(wp), DIMENSION(jptot_dyn) ::   hke        ! kinetic energy trends (u^2+v^2)  
     47   REAL(dp), DIMENSION(jptot_tra) ::   tmo, smo   ! temperature and salinity trends  
     48   REAL(dp), DIMENSION(jptot_tra) ::   t2 , s2    ! T^2 and S^2 trends  
     49   REAL(dp), DIMENSION(jptot_dyn) ::   umo, vmo   ! momentum trends  
     50   REAL(dp), DIMENSION(jptot_dyn) ::   hke        ! kinetic energy trends (u^2+v^2)  
    5151 
    5252   !! * Substitutions 
     
    7878      INTEGER ::   ji, jj, jk      ! dummy loop indices 
    7979      INTEGER ::   ikbu, ikbv      ! local integers 
    80       REAL(wp)::   zvm, zvt, zvs, z1_2rho0   ! local scalars 
    81       REAL(wp), DIMENSION(jpi,jpj)  :: ztswu, ztswv, z2dx, z2dy   ! 2D workspace  
     80      REAL(dp)::   zvm, zvt, zvs, z1_2rho0   ! local scalars 
     81      REAL(dp), DIMENSION(jpi,jpj)  :: ztswu, ztswv, z2dx, z2dy   ! 2D workspace  
    8282      !!---------------------------------------------------------------------- 
    8383      ! 
     
    186186      ! 
    187187      INTEGER  ::   ji, jj, jk   ! dummy loop indices 
    188       REAL(wp) ::   zcof         ! local scalar 
    189       REAL(wp), DIMENSION(jpi,jpj,jpk)  ::  zkx, zky, zkz, zkepe   
     188      REAL(dp) ::   zcof         ! local scalar 
     189      REAL(dp), DIMENSION(jpi,jpj,jpk)  ::  zkx, zky, zkz, zkepe   
    190190      !!---------------------------------------------------------------------- 
    191191 
     
    203203         zkepe(:,:,:) = 0._wp 
    204204    
    205          CALL eos( CASTWP(ts(:,:,:,:,Kmm)), rhd, CASTWP(rhop) )       ! now potential density 
     205         CALL eos( ts(:,:,:,:,Kmm), rhd, rhop )       ! now potential density 
    206206 
    207207         zcof = 0.5_wp / rho0             ! Density flux at w-point 
Note: See TracChangeset for help on using the changeset viewer.