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 12384 for NEMO/branches/2019/dev_r11078_OSMOSIS_IMMERSE_Nurser/src/OCE/TRA/tramle.F90 – NEMO

Ignore:
Timestamp:
2020-02-13T17:21:21+01:00 (4 years ago)
Author:
agn
Message:

corrections to tramle & zdfosm to avoid division by 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r11078_OSMOSIS_IMMERSE_Nurser/src/OCE/TRA/tramle.F90

    r12310 r12384  
    254254    DO jj = 1, jpjm1 
    255255       DO ji = 1, fs_jpim1   ! vector opt. 
    256           zhu(ji,jj) = 1._wp / zhu(ji,jj)                   ! hu --> 1/hu 
    257           zhv(ji,jj) = 1._wp / zhv(ji,jj) 
     256          zhu(ji,jj) = 1._wp / MAX(zhu(ji,jj), rsmall)                   ! hu --> 1/hu 
     257          zhv(ji,jj) = 1._wp / MAX(zhv(ji,jj), rsmall)  
    258258       END DO 
    259259    END DO 
Note: See TracChangeset for help on using the changeset viewer.