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 8062 for branches/UKMO/dev_r5518_medusa_chg_trc_bio_medusa/NEMOGCM/NEMO/TOP_SRC/MEDUSA/plankton.F90 – NEMO

Ignore:
Timestamp:
2017-05-24T10:03:18+02:00 (7 years ago)
Author:
marc
Message:

Fixes to do with tmask(ji,jj,1) and mbathy(ji,jj) outside DO loop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_medusa_chg_trc_bio_medusa/NEMOGCM/NEMO/TOP_SRC/MEDUSA/plankton.F90

    r8012 r8062  
    8484      DO jj = 2,jpjm1 
    8585         DO ji = 2,jpim1 
    86             if (tmask(ji,jj,1) == 1) then 
     86            if (tmask(ji,jj,jk) == 1) then 
    8787               !!---------------------------------------------------------- 
    8888               !! Plankton mortality losses 
     
    112112      DO jj = 2,jpjm1 
    113113         DO ji = 2,jpim1 
    114             if (tmask(ji,jj,1) == 1) then 
     114            if (tmask(ji,jj,jk) == 1) then 
    115115               !! 
    116116               !! diatom phytoplankton 
     
    135135      DO jj = 2,jpjm1 
    136136         DO ji = 2,jpim1 
    137             if (tmask(ji,jj,1) == 1) then 
     137            if (tmask(ji,jj,jk) == 1) then 
    138138               !! 
    139139               !! microzooplankton 
     
    157157      DO jj = 2,jpjm1 
    158158         DO ji = 2,jpim1 
    159             if (tmask(ji,jj,1) == 1) then 
     159            if (tmask(ji,jj,jk) == 1) then 
    160160               !! 
    161161               !! mesozooplankton 
Note: See TracChangeset for help on using the changeset viewer.