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 11822 for NEMO/branches/2019/dev_r10721_KERNEL-02_Storkey_Coward_IMMERSE_first_steps/src/TOP/TRP/trcsink.F90 – NEMO

Ignore:
Timestamp:
2019-10-29T11:41:36+01:00 (4 years ago)
Author:
acc
Message:

Branch 2019/dev_r10721_KERNEL-02_Storkey_Coward_IMMERSE_first_steps. Sette tested updates to branch to align with trunk changes between 10721 and 11740. Sette tests are passing but results differ from branch before these changes (except for GYRE_PISCES and VORTEX) and branch results already differed from trunk because of algorithmic fixes. Will need more checks to confirm correctness.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r10721_KERNEL-02_Storkey_Coward_IMMERSE_first_steps/src/TOP/TRP/trcsink.F90

    r10966 r11822  
    8282            END DO 
    8383         END DO 
    84          iiter(ji,jj) = MIN( iiter(ji,jj), nitermax ) 
     84         iiter(:,:) = MIN( iiter(:,:), nitermax ) 
    8585      ENDIF 
    8686 
     
    8888         DO jj = 1, jpj 
    8989            DO ji = 1, jpi 
    90                IF( tmask(ji,jj,jk) == 1 ) THEN 
     90               IF( tmask(ji,jj,jk) == 1.0 ) THEN 
    9191                 zwsmax = 0.5 * e3t(ji,jj,jk,Kmm) * rday / rsfact 
    9292                 zwsink(ji,jj,jk) = MIN( pwsink(ji,jj,jk), zwsmax * REAL( iiter(ji,jj), wp ) ) 
     93               ELSE 
     94                 ! provide a default value so there is no use of undefinite value in trc_sink2 for zwsink2 initialization 
     95                 zwsink(ji,jj,jk) = 0. 
    9396               ENDIF 
    9497            END DO 
     
    217220      REWIND( numnat_ref )              ! namtrc_rad in reference namelist  
    218221      READ  ( numnat_ref, namtrc_snk, IOSTAT = ios, ERR = 907) 
    219 907   IF( ios /= 0 )   CALL ctl_nam ( ios , 'namtrc_snk in reference namelist', lwp ) 
     222907   IF( ios /= 0 )   CALL ctl_nam ( ios , 'namtrc_snk in reference namelist' ) 
    220223      REWIND( numnat_cfg )              ! namtrc_rad in configuration namelist  
    221224      READ  ( numnat_cfg, namtrc_snk, IOSTAT = ios, ERR = 908 ) 
    222 908   IF( ios > 0 )   CALL ctl_nam ( ios , 'namtrc_snk in configuration namelist', lwp ) 
     225908   IF( ios > 0 )   CALL ctl_nam ( ios , 'namtrc_snk in configuration namelist' ) 
    223226      IF(lwm) WRITE( numont, namtrc_snk ) 
    224227 
Note: See TracChangeset for help on using the changeset viewer.