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/obs_sstbias.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/obs_sstbias.F90

    r14219 r15540  
    8282      INTEGER, DIMENSION(knumtypes) :: & 
    8383         & ibiastypes             ! Array of the bias types in each file 
    84       REAL(wp), DIMENSION(jpi,jpj,knumtypes) :: &  
     84      REAL(dp), DIMENSION(jpi,jpj,knumtypes) :: &  
    8585         & z_sstbias              ! Array to store the SST bias values 
    86       REAL(wp), DIMENSION(jpi,jpj) :: &  
     86      REAL(dp), DIMENSION(jpi,jpj) :: &  
    8787         & z_sstbias_2d           ! Array to store the SST bias values    
    88       REAL(wp), DIMENSION(1) :: & 
     88      REAL(dp), DIMENSION(1) :: & 
    8989         & zext, & 
    9090         & zobsmask 
    91       REAL(wp), DIMENSION(2,2,1) :: & 
     91      REAL(dp), DIMENSION(2,2,1) :: & 
    9292         & zweig 
    93       REAL(wp), DIMENSION(:,:,:), ALLOCATABLE :: & 
     93      REAL(dp), DIMENSION(:,:,:), ALLOCATABLE :: & 
    9494         & zmask, & 
    9595         & zglam, & 
    9696         & zgphi 
    97       REAL(wp), DIMENSION(:,:,:), ALLOCATABLE :: & 
     97      REAL(dp), DIMENSION(:,:,:), ALLOCATABLE :: & 
    9898         & zmask_tmp, & 
    9999         & zglam_tmp, & 
    100100         & zgphi_tmp    
    101       REAL(wp), ALLOCATABLE, DIMENSION(:,:,:) ::  zbias    
    102       REAL(wp) :: zlam 
    103       REAL(wp) :: zphi 
     101      REAL(dp), ALLOCATABLE, DIMENSION(:,:,:) ::  zbias    
     102      REAL(dp) :: zlam 
     103      REAL(dp) :: zphi 
    104104      INTEGER, DIMENSION(:,:,:), ALLOCATABLE :: & 
    105105         & igrdi, & 
     
    171171      END DO 
    172172      CALL obs_int_comm_2d( 2, 2, sstdata%nsurf, jpi, jpj, & 
    173          &                  igrdi, igrdj, CASTWP(glamt), zglam ) 
     173         &                  igrdi, igrdj, glamt, zglam ) 
    174174      CALL obs_int_comm_2d( 2, 2, sstdata%nsurf, jpi, jpj, & 
    175          &                  igrdi, igrdj, CASTWP(gphit), zgphi ) 
     175         &                  igrdi, igrdj, gphit, zgphi ) 
    176176      CALL obs_int_comm_2d( 2, 2, sstdata%nsurf, jpi, jpj, & 
    177177         &                  igrdi, igrdj, tmask(:,:,1), zmask ) 
Note: See TracChangeset for help on using the changeset viewer.