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/ISF/isfload.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/ISF/isfload.F90

    r14219 r15540  
    4444      !!-------------------------------------------------------------------- 
    4545      INTEGER,                      INTENT(in   ) ::   Kmm        ! ocean time level index       
    46       REAL(wp), DIMENSION(jpi,jpj), INTENT(  out) ::   pisfload   ! ice shelf load 
     46      REAL(dp), DIMENSION(jpi,jpj), INTENT(  out) ::   pisfload   ! ice shelf load 
    4747      !!---------------------------------------------------------------------- 
    4848      ! 
     
    7373      !!-------------------------------------------------------------------- 
    7474      INTEGER,                      INTENT(in   ) ::   Kmm     ! ocean time level index       
    75       REAL(wp), DIMENSION(jpi,jpj), INTENT(  out) ::   pload   ! ice shelf load 
     75      REAL(dp), DIMENSION(jpi,jpj), INTENT(  out) ::   pload   ! ice shelf load 
    7676      ! 
    7777      INTEGER  :: ji, jj, jk 
    7878      INTEGER  :: ikt 
    79       REAL(wp), DIMENSION(jpi,jpj)      :: zrhdtop_isf ! water density    displaced by the ice shelf (at the interface) 
    80       REAL(wp), DIMENSION(jpi,jpj,jpts) :: zts_top     ! water properties displaced by the ice shelf    
    81       REAL(wp), DIMENSION(jpi,jpj,jpk)  :: zrhd        ! water density    displaced by the ice shelf 
     79      REAL(dp), DIMENSION(jpi,jpj)      :: zrhdtop_isf ! water density    displaced by the ice shelf (at the interface) 
     80      REAL(dp), DIMENSION(jpi,jpj,jpts) :: zts_top     ! water properties displaced by the ice shelf    
     81      REAL(dp), DIMENSION(jpi,jpj,jpk)  :: zrhd        ! water density    displaced by the ice shelf 
    8282      !!---------------------------------------------------------------------- 
    8383      ! 
     
    8686      ! 
    8787      DO jk = 1, jpk                   !- compute density of the water displaced by the ice shelf  
    88          CALL eos( zts_top(:,:,:), CASTWP(gdept(:,:,jk,Kmm)), zrhd(:,:,jk) ) 
     88         CALL eos( zts_top(:,:,:), gdept(:,:,jk,Kmm), zrhd(:,:,jk) ) 
    8989!!st ==>> CALL eos( zts_top(:,:,:), gdept_0(:,:,jk), zrhd(:,:,jk) ) 
    9090      END DO 
    9191      ! 
    9292      !                                !- compute rhd at the ice/oce interface (ice shelf side) 
    93       CALL eos( zts_top , risfdep, zrhdtop_isf ) 
     93      CALL eos( zts_top , CASTDP(risfdep), zrhdtop_isf ) 
    9494      ! 
    9595      !                                !- Surface value + ice shelf gradient 
Note: See TracChangeset for help on using the changeset viewer.