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/zooplankton.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/zooplankton.F90

    r8039 r8062  
    122122      DO jj = 2,jpjm1 
    123123         DO ji = 2,jpim1 
    124             if (tmask(ji,jj,1) == 1) then 
     124            if (tmask(ji,jj,jk) == 1) then 
    125125               !! 
    126126               !! which translates to these incoming N and C fluxes 
     
    175175      DO jj = 2,jpjm1 
    176176         DO ji = 2,jpim1 
    177             if (tmask(ji,jj,1) == 1) then 
     177            if (tmask(ji,jj,jk) == 1) then 
    178178               !!---------------------------------------------------------- 
    179179               !! Mesozooplankton second 
     
    230230      DO jj = 2,jpjm1 
    231231         DO ji = 2,jpim1 
    232             if (tmask(ji,jj,1) == 1) then 
     232            if (tmask(ji,jj,jk) == 1) then 
    233233               !! 
    234234               !! the ideal food C:N ratio for mesozooplankton 
     
    281281      DO jj = 2,jpjm1 
    282282         DO ji = 2,jpim1 
    283             if (tmask(ji,jj,1) == 1) then 
     283            if (tmask(ji,jj,jk) == 1) then 
    284284               fzmi_i(ji,jj)  = fzmi_i(ji,jj)  + fse3t(ji,jj,jk) *          & 
    285285                                ( fgmipn(ji,jj) + fgmid(ji,jj) ) 
Note: See TracChangeset for help on using the changeset viewer.