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 14219 for NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/src/OCE/ISF/isfcpl.F90 – NEMO

Ignore:
Timestamp:
2020-12-18T18:52:57+01:00 (4 years ago)
Author:
mcastril
Message:

Add Mixed Precision support by Oriol Tintó

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/src/OCE/ISF/isfcpl.F90

    r14200 r14219  
    5050#  include "do_loop_substitute.h90" 
    5151#  include "domzgr_substitute.h90" 
     52#  include "single_precision_substitute.h90" 
     53 
    5254   !!---------------------------------------------------------------------- 
    5355   !! NEMO/OCE 4.0 , NEMO Consortium (2018) 
     
    9092      IF(lwp) WRITE(numout,*) ' isfcpl_init:', id 
    9193      IF (id == 0) THEN 
    92          IF(lwp) WRITE(numout,*) ' isfcpl_init: restart variables for ice sheet coupling are missing, skip coupling for this leg ' 
     94         IF(lwp) WRITE(numout,*) ' isfcpl_init: restart variables for ice sheet coupling are missing, skip coupling for this leg '  
    9395         IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~' 
    9496         IF(lwp) WRITE(numout,*) '' 
     
    214216      ssh(:,:,Kbb) = ssh(:,:,Kmm) 
    215217      ! 
    216       IF ( ln_isfdebug ) CALL debug('isfcpl_ssh: sshn',ssh(:,:,Kmm)) 
     218      IF ( ln_isfdebug ) CALL debug('isfcpl_ssh: sshn',CASTWP(ssh(:,:,Kmm))) 
    217219      ! 
    218220      ! recompute the vertical scale factor, depth and water thickness 
     
    586588      ENDDO 
    587589      ! 
    588       ! global 
     590      ! global  
    589591      CALL mpp_sum('isfcpl',nisfl  ) 
    590592      ! 
     
    592594      ALLOCATE(zisfpts(nisfl(narea))) 
    593595      ! 
    594       zisfpts(:) = isfcons(0,0,0,-HUGE(1.0), -HUGE(1.0), -HUGE(1.0), -HUGE(1.0), -HUGE(1.0), 0) 
     596      zisfpts(:) = isfcons(0,0,0,-HUGE(1.0_wp), -HUGE(1.0_wp), -HUGE(1.0_wp), -HUGE(1.0_wp), -HUGE(1.0_wp), 0) 
    595597      ! 
    596598      ! start computing the correction and fill zisfpts 
     
    665667            ELSE 
    666668               iig  =0   ; ijg  =0   ; ik   =0 
    667                zdvol=-HUGE(1.0) ; zdsal=-HUGE(1.0) ; zdtem=-HUGE(1.0) 
    668                zlat =-HUGE(1.0) ; zlon =-HUGE(1.0) 
     669               zdvol=-HUGE(1.0_wp) ; zdsal=-HUGE(1.0_wp) ; zdtem=-HUGE(1.0) 
     670               zlat =-HUGE(1.0_wp) ; zlon =-HUGE(1.0_wp) 
    669671               ingb = 0 
    670672            END IF 
Note: See TracChangeset for help on using the changeset viewer.