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/diaobs.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/OBS/diaobs.F90

    r14986 r15540  
    8888   INTEGER , DIMENSION(:), ALLOCATABLE ::   nextrprof, nextrsurf   ! Number of profile & surface extra variables 
    8989   INTEGER , DIMENSION(:), ALLOCATABLE ::   n2dintsurf             ! Interpolation option for surface variables 
    90    REAL(wp), DIMENSION(:), ALLOCATABLE ::   zavglamscl, zavgphiscl ! E/W & N/S diameter of averaging footprint for surface variables 
     90   REAL(dp), DIMENSION(:), ALLOCATABLE ::   zavglamscl, zavgphiscl ! E/W & N/S diameter of averaging footprint for surface variables 
    9191   LOGICAL , DIMENSION(:), ALLOCATABLE ::   lfpindegs              ! T=> surface obs footprint size specified in degrees, F=> in metres 
    9292   LOGICAL , DIMENSION(:), ALLOCATABLE ::   llnightav              ! Logical for calculating night-time averages 
     
    169169      REAL(wp) :: ztype_avglamscl ! Local version of rn_*_avglamscl 
    170170      REAL(wp) :: ztype_avgphiscl ! Local version of rn_*_avgphiscl 
    171       REAL(wp), DIMENSION(:,:,:),   ALLOCATABLE :: zglam   ! Model longitudes for profile variables 
    172       REAL(wp), DIMENSION(:,:,:),   ALLOCATABLE :: zgphi   ! Model latitudes  for profile variables 
    173       REAL(wp), DIMENSION(:,:,:,:), ALLOCATABLE :: zmask   ! Model land/sea mask associated with variables 
     171      REAL(dp), DIMENSION(:,:,:),   ALLOCATABLE :: zglam   ! Model longitudes for profile variables 
     172      REAL(dp), DIMENSION(:,:,:),   ALLOCATABLE :: zgphi   ! Model latitudes  for profile variables 
     173      REAL(dp), DIMENSION(:,:,:,:), ALLOCATABLE :: zmask   ! Model land/sea mask associated with variables 
    174174      !! 
    175175      NAMELIST/namobs/ln_diaobs, ln_t3d, ln_s3d, ln_sla,              & 
     
    628628      INTEGER :: jvar              ! Variable number 
    629629      INTEGER :: ji, jj, jk        ! Loop counters 
    630       REAL(wp), DIMENSION(:,:,:,:), ALLOCATABLE :: & 
     630      REAL(dp), DIMENSION(:,:,:,:), ALLOCATABLE :: & 
    631631         & zprofvar                ! Model values for variables in a prof ob 
    632       REAL(wp), DIMENSION(:,:,:,:), ALLOCATABLE :: & 
     632      REAL(dp), DIMENSION(:,:,:,:), ALLOCATABLE :: & 
    633633         & zprofmask               ! Mask associated with zprofvar 
    634       REAL(wp), DIMENSION(jpi,jpj) :: & 
     634      REAL(dp), DIMENSION(jpi,jpj) :: & 
    635635         & zsurfvar, &             ! Model values equivalent to surface ob. 
    636636         & zsurfmask               ! Mask associated with surface variable 
    637       REAL(wp), DIMENSION(:,:,:), ALLOCATABLE :: & 
     637      REAL(dp), DIMENSION(:,:,:), ALLOCATABLE :: & 
    638638         & zglam,    &             ! Model longitudes for prof variables 
    639639         & zgphi                   ! Model latitudes for prof variables 
    640       REAL(wp), DIMENSION(:,:,:), ALLOCATABLE :: zdept, zdepw 
     640      REAL(dp), DIMENSION(:,:,:), ALLOCATABLE :: zdept, zdepw 
    641641 
    642642      !----------------------------------------------------------------------- 
     
    787787      INTEGER :: jtype                    ! Data set loop variable 
    788788      INTEGER :: jo, jvar, jk 
    789       REAL(wp), DIMENSION(:), ALLOCATABLE :: & 
    790          & zu, & 
    791          & zv 
     789      REAL(dp), DIMENSION(:), ALLOCATABLE ::  zu, zv 
     790 
     791 
     792 
    792793 
    793794      !----------------------------------------------------------------------- 
     
    10831084      INTEGER, DIMENSION(ntypes), INTENT(INOUT) :: & 
    10841085         &                    n2dint  
    1085       REAL(wp), DIMENSION(ntypes), INTENT(INOUT) :: & 
    1086          &                    ravglamscl, ravgphiscl 
     1086      REAL(dp), DIMENSION(ntypes), INTENT(INOUT) ::  ravglamscl, ravgphiscl 
     1087 
     1088 
    10871089      LOGICAL, DIMENSION(ntypes), INTENT(INOUT) :: & 
    10881090         &                    lfpindegs, lavnight 
Note: See TracChangeset for help on using the changeset viewer.