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 13226 for NEMO/trunk/src/OCE/BDY/bdylib.F90 – NEMO

Ignore:
Timestamp:
2020-07-02T16:24:31+02:00 (4 years ago)
Author:
orioltp
Message:

Merging dev_r12512_HPC-04_mcastril_Mixed_Precision_implementation into the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/BDY/bdylib.F90

    r12489 r13226  
    249249!!$         zdy_centred = phib(iibm1jp1,ijbm1jp1) - phib(iibm1jm1,ijbm1jm1) 
    250250         ! upstream differencing for tangential derivatives 
    251          zsign_ups = sign( 1., zdt * zdy_centred ) 
     251         zsign_ups = sign( 1.0_wp, zdt * zdy_centred ) 
    252252         zsign_ups = 0.5*( zsign_ups + abs(zsign_ups) ) 
    253253         zdy = zsign_ups * zdy_1 + (1. - zsign_ups) * zdy_2 
     
    257257         zrx = zdt * zdx / ( zex1 * znor2 )  
    258258!!$         zrx = min(zrx,2.0_wp) 
    259          zout = sign( 1., zrx ) 
     259         zout = sign( 1.0_wp, zrx ) 
    260260         zout = 0.5*( zout + abs(zout) ) 
    261261         zwgt = 2.*rn_Dt*( (1.-zout) * idx%nbd(jb,igrd) + zout * idx%nbdout(jb,igrd) ) 
     
    266266           &                            + zwgt * ( phi_ext(jb) - phib(ii,ij) ) ) / ( 1. + zrx )  
    267267         else                  !! full oblique radiation !! 
    268             zsign_ups = sign( 1., zdt * zdy ) 
     268            zsign_ups = sign( 1.0_wp, zdt * zdy ) 
    269269            zsign_ups = 0.5*( zsign_ups + abs(zsign_ups) ) 
    270270            zey = zsign_ups * zey1 + (1.-zsign_ups) * zey2  
     
    414414!!$            zdy_centred = phib(iibm1jp1,ijbm1jp1,jk) - phib(iibm1jm1,ijbm1jm1,jk) 
    415415            ! upstream differencing for tangential derivatives 
    416             zsign_ups = sign( 1., zdt * zdy_centred ) 
     416            zsign_ups = sign( 1.0_wp, zdt * zdy_centred ) 
    417417            zsign_ups = 0.5*( zsign_ups + abs(zsign_ups) ) 
    418418            zdy = zsign_ups * zdy_1 + (1. - zsign_ups) * zdy_2 
     
    423423            zrx = zdt * zdx / ( zex1 * znor2 ) 
    424424!!$            zrx = min(zrx,2.0_wp) 
    425             zout = sign( 1., zrx ) 
     425            zout = sign( 1.0_wp, zrx ) 
    426426            zout = 0.5*( zout + abs(zout) ) 
    427427            zwgt = 2.*rn_Dt*( (1.-zout) * idx%nbd(jb,igrd) + zout * idx%nbdout(jb,igrd) ) 
     
    432432              &                            + zwgt * ( phi_ext(jb,jk) - phib(ii,ij,jk) ) ) / ( 1. + zrx )  
    433433            else                  !! full oblique radiation !! 
    434                zsign_ups = sign( 1., zdt * zdy ) 
     434               zsign_ups = sign( 1.0_wp, zdt * zdy ) 
    435435               zsign_ups = 0.5*( zsign_ups + abs(zsign_ups) ) 
    436436               zey = zsign_ups * zey1 + (1.-zsign_ups) * zey2  
Note: See TracChangeset for help on using the changeset viewer.