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 14260 – NEMO

Changeset 14260


Ignore:
Timestamp:
2021-01-05T14:35:55+01:00 (4 years ago)
Author:
smueller
Message:

Two bugfixes and complete initialisation of local arrays in internal subroutines of module subroutine zdf_osm (ticket #2353)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r14122_ENHANCE-14_smueller_OSMOSIS_streamlining/src/OCE/ZDF/zdfosm.F90

    r14149 r14260  
    16811681             zpe_mle_ref = 0._wp 
    16821682             DO jk = ibld(ji,jj), mld_prof(ji,jj) 
     1683               zthermal = rab_n(ji,jj,jk,jp_tem) 
     1684               zbeta    = rab_n(ji,jj,jk,jp_sal) 
    16831685               zbuoy = grav * ( zthermal * ts(ji,jj,jk,jp_tem,Kmm) - zbeta * ts(ji,jj,jk,jp_sal,Kmm) ) 
    16841686               zpe_mle_layer = zpe_mle_layer + zbuoy * gdepw(ji,jj,jk,Kmm) * e3w(ji,jj,jk,Kmm) 
     
    17151717                  lpyc(ji,jj) = .FALSE. 
    17161718                ELSE 
    1717                    lpyc = .TRUE. 
     1719                   lpyc(ji,jj) = .TRUE. 
    17181720                ENDIF 
    17191721              ELSE 
     
    23732375      ! calculate horizontal gradients at u & v points 
    23742376 
     2377      zmld_midu(:,:)   = 0.0_wp 
     2378      ztsm_midu(:,:,:) = 0.0_wp 
    23752379      DO_2D( 0, 0, 1, 0 ) 
    23762380         zdtdx(ji,jj) = ( ztm(ji+1,jj) - ztm( ji,jj) )  * umask(ji,jj,1) / e1u(ji,jj) 
     
    23812385      END_2D 
    23822386 
     2387      zmld_midv(:,:)   = 0.0_wp 
     2388      ztsm_midv(:,:,:) = 0.0_wp 
    23832389      DO_2D( 1, 0, 0, 0 ) 
    23842390         zdtdy(ji,jj) = ( ztm(ji,jj+1) - ztm( ji,jj) ) * vmask(ji,jj,1) / e1v(ji,jj) 
Note: See TracChangeset for help on using the changeset viewer.