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 14200 for NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/src/OCE/TRA/trazdf.F90 – NEMO

Ignore:
Timestamp:
2020-12-17T15:36:44+01:00 (4 years ago)
Author:
mcastril
Message:

Merging r14117 through r14199 into dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final

File:
1 edited

Legend:

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

    r14072 r14200  
    2323   USE trd_oce        ! trends: ocean variables 
    2424   USE trdtra         ! trends: tracer trend manager 
     25   USE eosbn2, ONLY: ln_SEOS, rn_b0 
    2526   ! 
    2627   USE in_out_manager ! I/O manager 
     
    8384      ! JMM avoid negative salinities near river outlet ! Ugly fix 
    8485      ! JMM : restore negative salinities to small salinities: 
    85       WHERE( pts(A2D(0),:,jp_sal,Kaa) < 0._wp )   pts(A2D(0),:,jp_sal,Kaa) = 0.1_wp 
     86!!jc: discard this correction in case salinity is not used in eos 
     87      IF ( .NOT.(ln_SEOS.AND.(rn_b0==0._wp)) ) THEN 
     88         WHERE( pts(A2D(0),:,jp_sal,Kaa) < 0._wp )   pts(A2D(0),:,jp_sal,Kaa) = 0.1_wp 
     89      ENDIF 
    8690!!gm 
    8791 
     
    97101               &          - ztrds(:,:,jk) 
    98102         END DO 
    99          ! NOTE: [tiling-comms-merge] The diagnostic results change along the north fold if this is removed 
    100103!!gm this should be moved in trdtra.F90 and done on all trends 
    101104         CALL lbc_lnk_multi( 'trazdf', ztrdt, 'T', 1.0_wp , ztrds, 'T', 1.0_wp ) 
Note: See TracChangeset for help on using the changeset viewer.