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 14127 for NEMO/trunk/src/OCE/TRA – NEMO

Ignore:
Timestamp:
2020-12-08T09:03:03+01:00 (3 years ago)
Author:
jchanut
Message:

#2537, remove checks/corrections if salinity is a passive tracer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/TRA/trazdf.F90

    r14072 r14127  
    8383      ! JMM avoid negative salinities near river outlet ! Ugly fix 
    8484      ! 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 
     85!!jc: discard this correction in case salinity is not used in eos 
     86      IF ( .NOT.(ln_seos.AND.(rn_lambda2==0._wp)) ) THEN 
     87         WHERE( pts(A2D(0),:,jp_sal,Kaa) < 0._wp )   pts(A2D(0),:,jp_sal,Kaa) = 0.1_wp 
     88      ENDIF 
    8689!!gm 
    8790 
Note: See TracChangeset for help on using the changeset viewer.