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

Changeset 15795


Ignore:
Timestamp:
2022-04-23T10:33:25+02:00 (2 years ago)
Author:
smasson
Message:

bugfix in ar5, see https://forge.nemo-ocean.eu/nemo/nemo/-/issues/39

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/releases/r4.0/r4.0-HEAD/src/OCE/DIA/diaar5.F90

    r13087 r15795  
    377377      !!---------------------------------------------------------------------- 
    378378      INTEGER  ::   inum 
    379       INTEGER  ::   ik, idep 
     379      INTEGER  ::   ik 
    380380      INTEGER  ::   ji, jj, jk  ! dummy loop indices 
    381381      REAL(wp) ::   zztmp   
     
    404404            DO jj = 1, jpj               ! interpolation of salinity at the last ocean level (i.e. the partial step) 
    405405               DO ji = 1, jpi 
    406                   idep = tmask(ji,jj,jk) * e3t_0(ji,jj,jk) 
    407                   zvol0 (ji,jj) = zvol0 (ji,jj) +  idep * e1e2t(ji,jj) 
    408                   thick0(ji,jj) = thick0(ji,jj) +  idep     
     406                  zztmp = tmask(ji,jj,jk) * e3t_0(ji,jj,jk) 
     407                  zvol0 (ji,jj) = zvol0 (ji,jj) + zztmp * e1e2t(ji,jj) 
     408                  thick0(ji,jj) = thick0(ji,jj) + zztmp     
    409409               END DO 
    410410            END DO 
Note: See TracChangeset for help on using the changeset viewer.