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/DIA/diahsb.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/DIA/diahsb.F90

    r14072 r14219  
    4444   REAL(wp) ::   frc_wn_t, frc_wn_s    ! global forcing trends 
    4545   ! 
    46    REAL(wp), DIMENSION(:,:)  , ALLOCATABLE ::   surf 
    47    REAL(wp), DIMENSION(:,:)  , ALLOCATABLE ::   surf_ini      , ssh_ini          ! 
     46   REAL(dp), DIMENSION(:,:)  , ALLOCATABLE ::   surf  
     47   REAL(dp), DIMENSION(:,:)  , ALLOCATABLE  :: surf_ini 
     48   REAL(wp), DIMENSION(:,:)  , ALLOCATABLE :: ssh_ini                            ! 
    4849   REAL(wp), DIMENSION(:,:)  , ALLOCATABLE ::   ssh_hc_loc_ini, ssh_sc_loc_ini   ! 
    49    REAL(wp), DIMENSION(:,:,:), ALLOCATABLE ::   hc_loc_ini, sc_loc_ini, e3t_ini  ! 
     50   REAL(dp), DIMENSION(:,:,:), ALLOCATABLE  :: sc_loc_ini, e3t_ini               ! 
     51   REAL(wp), DIMENSION(:,:,:), ALLOCATABLE ::   hc_loc_ini                       ! 
    5052   REAL(wp), DIMENSION(:,:,:), ALLOCATABLE ::   tmask_ini 
    5153 
     
    7577      INTEGER    ::   ji, jj, jk                  ! dummy loop indice 
    7678      REAL(wp)   ::   zdiff_hc    , zdiff_sc      ! heat and salt content variations 
    77       REAL(wp)   ::   zdiff_hc1   , zdiff_sc1     !  -         -     -        - 
    78       REAL(wp)   ::   zdiff_v1    , zdiff_v2      ! volume variation 
     79      REAL(wp)   ::   zdiff_hc1   , zdiff_sc1     !  -         -     -        -  
     80      REAL(wp)   ::   zdiff_v1          ! volume variation 
     81      REAL(dp)   ::   zdiff_v2 
    7982      REAL(wp)   ::   zerr_hc1    , zerr_sc1      ! heat and salt content misfit 
    8083      REAL(wp)   ::   zvol_tot                    ! volume 
    8184      REAL(wp)   ::   z_frc_trd_t , z_frc_trd_s   !    -     - 
    82       REAL(wp)   ::   z_frc_trd_v                 !    -     - 
     85      REAL(dp)   ::   z_frc_trd_v                 !    -     - 
    8386      REAL(wp)   ::   z_wn_trd_t , z_wn_trd_s     !    -     - 
    8487      REAL(wp)   ::   z_ssh_hc , z_ssh_sc         !    -     - 
    8588      REAL(wp), DIMENSION(jpi,jpj)       ::   z2d0, z2d1   ! 2D workspace 
    86       REAL(wp), DIMENSION(jpi,jpj,jpkm1) ::   zwrk         ! 3D workspace 
     89      REAL(dp), DIMENSION(jpi,jpj,jpkm1) ::   zwrk         ! 3D workspace 
    8790      !!--------------------------------------------------------------------------- 
    8891      IF( ln_timing )   CALL timing_start('dia_hsb') 
Note: See TracChangeset for help on using the changeset viewer.