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/ASM/asminc.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/ASM/asminc.F90

    r14090 r14219  
    9797#  include "do_loop_substitute.h90" 
    9898#  include "domzgr_substitute.h90" 
     99#  include "single_precision_substitute.h90" 
    99100   !!---------------------------------------------------------------------- 
    100101   !! NEMO/OCE 4.0 , NEMO Consortium (2018) 
     
    516517      INTEGER                                  , INTENT(in   ) :: kt             ! Current time step 
    517518      INTEGER                                  , INTENT(in   ) :: Kbb, Kmm, Krhs ! Time level indices 
    518       REAL(wp), DIMENSION(jpi,jpj,jpk,jpts,jpt), INTENT(inout) :: pts            ! active tracers and RHS of tracer equation 
     519      REAL(dp), DIMENSION(jpi,jpj,jpk,jpts,jpt), INTENT(inout) :: pts            ! active tracers and RHS of tracer equation 
    519520      ! 
    520521      INTEGER  :: ji, jj, jk 
     
    528529      IF( ln_temnofreeze ) THEN 
    529530         DO jk = 1, jpkm1 
    530            CALL eos_fzp( pts(:,:,jk,jp_sal,Kmm), fzptnz(:,:,jk), gdept(:,:,jk,Kmm) ) 
     531           CALL eos_fzp( CASTWP(pts(:,:,jk,jp_sal,Kmm)), fzptnz(:,:,jk), CASTWP(gdept(:,:,jk,Kmm)) ) 
    531532         END DO 
    532533      ENDIF 
     
    619620            END_3D 
    620621 
    621             CALL eos( pts(:,:,:,:,Kbb), rhd, rhop, gdept_0(:,:,:) )  ! Before potential and in situ densities 
     622            CALL eos( CASTWP(pts(:,:,:,:,Kbb)), rhd, rhop, gdept_0(:,:,:) )  ! Before potential and in situ densities 
    622623!!gm  fabien 
    623624!            CALL eos( pts(:,:,:,:,Kbb), rhd, rhop )                ! Before potential and in situ densities 
     
    667668      INTEGER                             , INTENT( in )  ::  kt             ! ocean time-step index 
    668669      INTEGER                             , INTENT( in )  ::  Kbb, Kmm, Krhs ! ocean time level indices 
    669       REAL(wp), DIMENSION(jpi,jpj,jpk,jpt), INTENT(inout) ::  puu, pvv       ! ocean velocities and RHS of momentum equation 
     670      REAL(dp), DIMENSION(jpi,jpj,jpk,jpt), INTENT(inout) ::  puu, pvv       ! ocean velocities and RHS of momentum equation 
    670671      ! 
    671672      INTEGER :: jk 
Note: See TracChangeset for help on using the changeset viewer.