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/OBS/obsinter_z1d.h90 – 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/OBS/obsinter_z1d.h90

    r13226 r15540  
    3434      INTEGER, INTENT(IN), DIMENSION(kdep) :: & 
    3535         & kkco                 ! Array indicies for interpolation 
    36       REAL(KIND=wp), INTENT(IN), DIMENSION(kdep) :: & 
     36      REAL(KIND=dp), INTENT(IN), DIMENSION(kdep) :: & 
    3737         & pobsdep              ! Depth of the observation 
    38       REAL(KIND=wp), INTENT(IN), DIMENSION(kpk) :: & 
     38      REAL(KIND=dp), INTENT(IN), DIMENSION(kpk) :: & 
    3939         & pobsk,  &            ! Model profile at a given (lon,lat) 
    4040         & pobs2k, &            ! 2nd derivative of the interpolating function 
    4141         & pdep,   &            ! Model depth array 
    4242         & pobsmask             ! Vertical mask 
    43       REAL(KIND=wp), INTENT(OUT), DIMENSION(kdep) :: & 
     43      REAL(KIND=dp), INTENT(OUT), DIMENSION(kdep) :: & 
    4444         & pobs                 ! Model equivalent at observation point 
    4545   
    4646      !! * Local declarations 
    47       REAL(KIND=wp) :: z1dm       ! Distance above and below obs to model grid points 
    48       REAL(KIND=wp) :: z1dp          
    49       REAL(KIND=wp) :: zsum       ! Dummy variables for computation 
    50       REAL(KIND=wp) :: zsum2 
     47      REAL(KIND=dp) :: z1dm       ! Distance above and below obs to model grid points 
     48      REAL(KIND=dp) :: z1dp          
     49      REAL(KIND=dp) :: zsum       ! Dummy variables for computation 
     50      REAL(KIND=dp) :: zsum2 
    5151      INTEGER :: jdep             ! Observation depths loop variable 
    5252     
     
    122122      !! * Arguments 
    123123      INTEGER, INTENT(IN) :: kpk               ! Number of vertical levels 
    124       REAL(KIND=wp), INTENT(IN), DIMENSION(kpk) :: & 
     124      REAL(KIND=dp), INTENT(IN), DIMENSION(kpk) :: & 
    125125         & pobsk, &          ! Model profile at a given (lon,lat) 
    126126         & pdep,  &          ! Model depth array 
    127127         & pobsmask          ! Vertical mask 
    128       REAL(KIND=wp), INTENT(OUT), DIMENSION(kpk) :: & 
     128      REAL(KIND=dp), INTENT(OUT), DIMENSION(kpk) :: & 
    129129         & pobs2k            ! 2nd derivative of the interpolating function 
    130130   
    131131      !! * Local declarations 
    132132      INTEGER :: jk 
    133       REAL(KIND=wp) :: za 
    134       REAL(KIND=wp) :: zb 
    135       REAL(KIND=wp) :: zc 
    136       REAL(KIND=wp) :: zpa 
    137       REAL(KIND=wp) :: zkm 
    138       REAL(KIND=wp) :: zkp 
    139       REAL(KIND=wp) :: zk 
    140       REAL(KIND=wp), DIMENSION(kpk-1) :: & 
     133      REAL(KIND=dp) :: za 
     134      REAL(KIND=dp) :: zb 
     135      REAL(KIND=dp) :: zc 
     136      REAL(KIND=dp) :: zpa 
     137      REAL(KIND=dp) :: zkm 
     138      REAL(KIND=dp) :: zkp 
     139      REAL(KIND=dp) :: zk 
     140      REAL(KIND=dp), DIMENSION(kpk-1) :: & 
    141141         & zs, & 
    142142         & zp, & 
Note: See TracChangeset for help on using the changeset viewer.