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/grt_cir_dis.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/grt_cir_dis.h90

    r13226 r15540  
    55   !!---------------------------------------------------------------------- 
    66 
    7    REAL(KIND=wp) FUNCTION grt_cir_dis( pa1, pa2, pb1, pb2, pc1, pc2 ) 
     7   REAL(KIND=dp) FUNCTION grt_cir_dis( pa1, pa2, pb1, pb2, pc1, pc2 ) 
    88      !!---------------------------------------------------------------------- 
    99      !!                     *** FUNCTION grt_cir_dis *** 
     
    2121       
    2222      !! * Arguments 
    23       REAL(KIND=wp) :: pa1   !  sin(lat1) 
    24       REAL(KIND=wp) :: pa2   !  sin(lat2) 
    25       REAL(KIND=wp) :: pb1   !  cos(lat1) * cos(lon1) 
    26       REAL(KIND=wp) :: pb2   !  cos(lat2) * cos(lon2) 
    27       REAL(KIND=wp) :: pc1   !  cos(lat1) * sin(lon1) 
    28       REAL(KIND=wp) :: pc2   !  cos(lat2) * sin(lon2) 
     23      REAL(KIND=dp) :: pa1   !  sin(lat1) 
     24      REAL(KIND=dp) :: pa2   !  sin(lat2) 
     25      REAL(KIND=dp) :: pb1   !  cos(lat1) * cos(lon1) 
     26      REAL(KIND=dp) :: pb2   !  cos(lat2) * cos(lon2) 
     27      REAL(KIND=dp) :: pc1   !  cos(lat1) * sin(lon1) 
     28      REAL(KIND=dp) :: pc2   !  cos(lat2) * sin(lon2) 
    2929 
    30       REAL(KIND=wp) :: cosdist ! cosine of great circle distance 
     30      REAL(KIND=dp) :: cosdist ! cosine of great circle distance 
    3131 
    3232      ! Compute cosine of great circle distance, constraining it to be between 
Note: See TracChangeset for help on using the changeset viewer.